tourze / statistics-bundle
平台统计模块
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.1
- doctrine/collections: ^2.3
- doctrine/common: ^3.5
- doctrine/dbal: ^4.0
- doctrine/doctrine-bundle: ^2.13
- doctrine/inflector: ^1.4 || ^2.0
- doctrine/orm: ^2.20 || ^3.0
- doctrine/persistence: ^3.1 || ^4
- nesbot/carbon: ^2.72 || ^3
- symfony/config: ^6.4
- symfony/console: ^6.4
- symfony/dependency-injection: ^6.4
- symfony/framework-bundle: ^6.4
- symfony/http-kernel: ^6.4
- symfony/messenger: ^6.4
- symfony/serializer: ^6.4
- symfony/yaml: ^6.4 || ^7.1
- tourze/arrayable: 0.0.*
- tourze/doctrine-helper: 0.0.*
- tourze/doctrine-indexed-bundle: 0.0.*
- tourze/doctrine-timestamp-bundle: 0.0.*
- tourze/easy-admin-attribute: 0.0.*
- tourze/symfony-async-bundle: 0.0.*
- tourze/symfony-cron-job-bundle: 0.1.*
- tourze/symfony-lock-command-bundle: 0.0.*
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.0
README
A flexible Symfony bundle for platform statistics, supporting daily report metrics management, automatic stats table generation, and extensible/customizable metrics for multidimensional analysis.
Features
- Auto-generate and manage daily statistics reports
- Flexible metric extension mechanism, support for custom metric providers
- Doctrine ORM entity design for multi-dimensional, multi-category statistics
- CLI tools for generating daily reports and maintaining stats tables
- Deep integration with tourze base components
Installation
- PHP >= 8.1
- Symfony >= 6.4
- Doctrine ORM >= 2.20
- Install via Composer:
composer require tourze/statistics-bundle
Quick Start
- Register the bundle in Symfony
- Configure database and dependencies
- Implement custom metric providers (implement
MetricProviderInterface
) - Generate daily statistics reports via CLI:
php bin/console app:statistics:generate-daily-report --date=2024-04-27
Documentation
- See code comments for API details
- Extend custom metrics by implementing
MetricProviderInterface
- Use
app:stats-table
command to auto-maintain statistics table schema
Contributing
- Issues and PRs are welcome
- Follow PSR standards and project code style
- All new features must include tests
License
- MIT License
- (c) tourze team
Changelog
- See CHANGELOG.md or git history