PHPackages                             tourze/coupon-send-plan-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tourze/coupon-send-plan-bundle

ActiveSymfony-bundle

tourze/coupon-send-plan-bundle
==============================

A Symfony bundle for managing coupon sending plans and scheduled distribution

0.0.1(11mo ago)00MITPHPPHP ^8.1CI failing

Since Jun 1Pushed 4mo agoCompare

[ Source](https://github.com/tourze/coupon-send-plan-bundle)[ Packagist](https://packagist.org/packages/tourze/coupon-send-plan-bundle)[ RSS](/packages/tourze-coupon-send-plan-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (28)Versions (2)Used By (0)

Coupon Send Plan Bundle
=======================

[](#coupon-send-plan-bundle)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/5214a4113c4b47f02b193141bb57ee8f334f9c5378e22d87c8d2c52cb1e7ab17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f636f75706f6e2d73656e642d706c616e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/coupon-send-plan-bundle)[![PHP Version](https://camo.githubusercontent.com/45132079c941ea4afef8559fb02cbc114eb0a449089c35c68b5a45025944163e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f636f75706f6e2d73656e642d706c616e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/coupon-send-plan-bundle)[![License](https://camo.githubusercontent.com/611f6a5c1f59a6c287f4cb4172d6b309a57b6016d2a00ae953143f957dabf254/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f636f75706f6e2d73656e642d706c616e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/coupon-send-plan-bundle)[![Total Downloads](https://camo.githubusercontent.com/88be7f9ae753bf8e50d310c73fe2cc9a214a208d13d981abbc5b9eab6225b125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f636f75706f6e2d73656e642d706c616e2d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/coupon-send-plan-bundle)[![Build Status](https://camo.githubusercontent.com/0346e18af1343d739d0405776c07b83798d5bb0200e3efcfdf657e5e662f6403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746f75727a652f7068702d6d6f6e6f7265706f2f63692e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/tourze/php-monorepo/actions)[![Coverage Status](https://camo.githubusercontent.com/73ee3bab50824f778cedc6b4b3f78bcdab621eef812a979ec388b8ad692a4bff/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f75727a652f7068702d6d6f6e6f7265706f2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/tourze/php-monorepo)

A Symfony bundle that provides scheduled coupon sending functionality, allowing you to create plans to send coupons to users at specified times.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Dependencies](#dependencies)
- [Installation](#installation)
- [Configuration](#configuration)
- [Quick Start](#quick-start)
    - [1. Enable the Bundle](#1-enable-the-bundle)
    - [2. Create a Send Plan](#2-create-a-send-plan)
    - [3. Execute Send Plans](#3-execute-send-plans)
- [Console Commands](#console-commands)
    - [`coupon:send-plan`](#couponsend-plan)
- [Advanced Usage](#advanced-usage)
    - [Custom Plan Processing](#custom-plan-processing)
    - [Batch Processing](#batch-processing)
    - [Error Handling and Monitoring](#error-handling-and-monitoring)
- [API Reference](#api-reference)
    - [SendPlan Entity](#sendplan-entity)
    - [PlanService](#planservice)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- Create coupon send plans with scheduled execution times
- Bulk send coupons to multiple users
- Asynchronous processing support
- Comprehensive logging and error handling
- Integration with Doctrine ORM
- Built-in console command for automated execution

Dependencies
------------

[](#dependencies)

This bundle requires the following packages:

- PHP 8.1 or higher
- Symfony 7.3 or higher
- Doctrine ORM 3.0 or higher
- tourze/coupon-core-bundle
- tourze/symfony-aop-async-bundle

For a complete list of dependencies, see `composer.json`.

Installation
------------

[](#installation)

```
composer require tourze/coupon-send-plan-bundle
```

Configuration
-------------

[](#configuration)

No additional configuration is required. The bundle uses the default Doctrine entity manager and integrates with the existing coupon system.

Quick Start
-----------

[](#quick-start)

### 1. Enable the Bundle

[](#1-enable-the-bundle)

Add the bundle to your `config/bundles.php`:

```
