Download the PHP package tourze/coupon-h5-link-bundle without Composer
On this page you can find all versions of the php package tourze/coupon-h5-link-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package coupon-h5-link-bundle
Coupon H5 Link Bundle
中文
A Symfony bundle for managing H5 coupon external links, providing entity management and repository functionality for H5 link operations.
Features
- H5 external link entity management
- Integration with coupon core system
- Built-in timestamp, blame, and IP tracking
- API serialization support
- Doctrine ORM integration
Installation
Install the package via Composer:
Quick Start
1. Register the Bundle
Add the bundle to your config/bundles.php:
2. Create and Configure H5 Link Entity
3. Using the Repository
4. API Serialization
The H5Link entity implements ApiArrayInterface for easy API responses:
Advanced Usage
Custom Repository Methods
Extend the H5LinkRepository to add custom query methods:
Validation and Security
The H5Link entity includes built-in validation constraints:
Event Integration
Listen to H5Link entity changes:
Configuration
The bundle automatically configures the necessary services. No additional configuration is required.
Entity Features
H5Link Entity
The H5Link entity provides:
- id: Snowflake ID for unique identification
- url: The H5 external link URL
- coupon: One-to-one relationship with Coupon entity
- createTime/updateTime: Automatic timestamps
- createdBy/updatedBy: User tracking
- createIp/updateIp: IP address tracking
Traits Used
SnowflakeKeyAware: Provides snowflake-based ID generationTimestampableAware: Automatic creation and update timestampsBlameableAware: Track user who created/updated the entityIpTraceableAware: Track IP addresses for creation/updates
Requirements
- PHP 8.1 or higher
- Symfony 7.3 or higher
- Doctrine ORM 3.0 or higher
License
This bundle is released under the MIT License. See the LICENSE file for details.
All versions of coupon-h5-link-bundle with dependencies
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^3.1 || ^4
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/routing Version ^6.4
symfony/serializer Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/arrayable Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-ip-bundle Version 0.0.*
tourze/doctrine-snowflake-bundle Version 0.1.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/doctrine-user-bundle Version 0.0.*
tourze/easy-admin-attribute Version 0.1.*
tourze/coupon-core-bundle Version 0.0.*