tourze/statistics-bundle

平台统计模块

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

0.1.0 2025-04-28 16:08 UTC

This package is auto-updated.

Last update: 2025-04-28 17:13:57 UTC


README

English | 中文

Latest Version Build Status Quality Score Total Downloads

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

  1. Register the bundle in Symfony
  2. Configure database and dependencies
  3. Implement custom metric providers (implement MetricProviderInterface)
  4. 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