Download the PHP package tourze/coupon-command-bundle without Composer

On this page you can find all versions of the php package tourze/coupon-command-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package coupon-command-bundle

CouponCommandBundle

中文

Latest Version PHP Version Require License Build Status Quality Score Code Coverage Total Downloads

A Symfony bundle for coupon command code system that provides command-based coupon distribution and management functionality.

Table of Contents

Features

Requirements

Installation

Install via Composer

Enable the Bundle

Add to config/bundles.php:

Database Migration

Quick Start

Core Concepts

Restriction Types

  1. Time Restrictions: Set valid time range for commands
  2. Count Restrictions: Total usage count and per-user usage limits
  3. User Restrictions: Specify allowed user groups for command usage
  4. Status Control: Enable/disable command restrictions

JsonRPC Interface

Validate Command - ValidateCouponCommand

Validates command validity without actually using the command.

Request Parameters:

Response Example:

Use Command - UseCouponCommand

Use command to claim coupon.

Request Parameters:

Response Example:

Admin Interface

The bundle provides complete EasyAdmin management interface:

  1. Command Configuration Management - CommandConfigCrudController

    • Create and edit commands
    • Link to coupons
    • View usage statistics
  2. Restriction Configuration Management - CommandLimitCrudController

    • Set usage restrictions
    • Configure time windows
    • Manage user group restrictions
  3. Usage Record Viewing - CommandUsageRecordCrudController
    • View detailed usage records
    • Success/failure statistics
    • User usage tracking

Architecture

Entity Relationships

Service Layer

Core Features

Usage Examples

Basic Usage

Advanced Usage

User Group Restrictions

Service Configuration

In services.yaml, the bundle automatically registers the following services:

Error Handling

Common Error Messages

Error Message Description Solution
Command does not exist Entered command is not configured Check if command is correct or has been created
Coupon does not exist Associated coupon has been deleted Re-associate with a valid coupon
Command usage time is outside valid period Outside time restrictions Check time configuration
Command usage count has reached limit Exceeded total count limit Increase limit or create new command
You are not in the usage scope of this command User not in allowed list Add user to allowed list
You have reached the usage limit for this command User personal count limit exceeded Increase personal usage limit

Logging

All command usage is logged with detailed information:

Testing

Run the test suite:

Test coverage includes:

Contributing

Please see CONTRIBUTING.md for details on how to contribute to this project.

Support

For issues or suggestions, please submit an Issue or Pull Request on the main repository.

License

MIT License

Changelog

v0.0.1


All versions of coupon-command-bundle with dependencies

PHP Build Version
Package Version
Requires ext-spl Version *
ext-date Version *
ext-json Version *
doctrine/collections Version ^2.3
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^4.1
easycorp/easyadmin-bundle Version ^4
knplabs/knp-menu Version ^3.7
psr/container Version ^1.1|^2.0
symfony/config Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/security-core Version ^7.3
symfony/serializer Version ^7.3
symfony/service-contracts Version ^3.6
symfony/yaml Version ^7.3
tourze/arrayable Version 1.*
tourze/bundle-dependency Version 1.*
tourze/coupon-core-bundle Version 0.1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-extra-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/json-rpc-core Version 1.0.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tourze/coupon-command-bundle contains the following files

Loading the files please wait ...