Download the PHP package tourze/credit-resource-bundle without Composer
On this page you can find all versions of the php package tourze/credit-resource-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package credit-resource-bundle
credit-resource-bundle
中文
[]
(https://packagist.org/packages/tourze/credit-resource-bundle)
[
]
(https://codecov.io/gh/tourze/php-monorepo)
[
]
(https://packagist.org/packages/tourze/credit-resource-bundle)
[
]
(https://packagist.org/packages/tourze/credit-resource-bundle)
Credit resource management bundle providing resource pricing and automatic billing functionality for Symfony applications. Supports flexible billing strategies with asynchronous bill processing via message queue.
Table of Contents
- Features
- Requirements
- Installation
- Quick Start
- Configuration
- Advanced Usage
- Security
- Contributing
- License
- Authors
- Changelog
Features
- Resource pricing management with multiple billing strategies
- Automatic billing functionality with customizable rules
- Flexible billing cycles (hourly, daily, monthly, yearly)
- Tiered pricing support for complex billing scenarios
- Asynchronous bill processing via message queue
- Free quota and price ceiling/floor controls
- Integration with Symfony Messenger for scalable processing
Requirements
- PHP >= 8.1
- Symfony >= 7.3
- Doctrine ORM >= 3.0
Installation
Quick Start
1. Register Bundle
Register the bundle in your Symfony application:
2. Configure Database
Run database migrations to create the required table structures:
3. Create Resource Price Configuration
4. Generate Bills
Configuration
Billing Strategies
The bundle supports multiple billing strategies:
Fixed Price Strategy
Tiered Price Strategy
Billing Cycles
Configure different billing cycles based on your needs:
Price Controls
Advanced Usage
Custom Resource Usage Providers
Implement the ResourceUsageProviderInterface to define custom usage calculation:
Custom Billing Strategies
Create custom billing strategies for complex pricing rules:
Security
When using this bundle in production:
- Ensure proper access controls on admin interfaces
- Validate all pricing configurations before deployment
- Monitor billing logs for anomalies
- Use database transactions for critical billing operations
- Implement proper error handling and alerting
Contributing
Issues and Pull Requests are welcome. Please ensure:
- Code follows PSR-12 coding standards
- All tests must pass (
./vendor/bin/phpunit) - PHPStan analysis passes (
./vendor/bin/phpstan analyse) - New features require corresponding tests
- Update relevant documentation
License
This project is licensed under the MIT License. See the LICENSE file for details.
Authors
- Tourze Team
Changelog
See CHANGELOG.md for version history.
All versions of credit-resource-bundle with dependencies
brick/math Version ^0.13
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/orm Version ^3.0
doctrine/persistence Version ^3.1 || ^4
knplabs/knp-menu Version ^3.7
nesbot/carbon Version ^2.72 || ^3
psr/log Version ^3|^2|^1
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/http-kernel Version ^6.4
symfony/messenger Version ^6.4
symfony/security-core Version ^6.4
symfony/uid Version ^6.4
tourze/async-contracts Version 0.0.*
tourze/biz-user-bundle Version 0.0.*
tourze/bundle-dependency Version 0.0.*
tourze/credit-bundle Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-snowflake-bundle Version 0.1.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/doctrine-track-bundle Version 0.1.*
tourze/doctrine-user-bundle Version 0.0.*
tourze/easy-admin-attribute Version 0.1.*
tourze/easy-admin-menu-bundle Version 0.1.*
tourze/enum-extra Version 0.1.*
tourze/symfony-cron-job-bundle Version 0.1.*
yiisoft/arrays Version ^3