Download the PHP package tourze/wechat-mini-program-log-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-mini-program-log-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/wechat-mini-program-log-bundle
More information about tourze/wechat-mini-program-log-bundle
Files in tourze/wechat-mini-program-log-bundle
Package wechat-mini-program-log-bundle
Short Description 微信小程序日志管理Bundle,提供错误日志、反馈和处罚记录的同步和管理功能
License MIT
Informations about the package wechat-mini-program-log-bundle
Wechat Mini Program Log Bundle
中文
A Symfony bundle for managing WeChat Mini Program logs, including error tracking, feedback collection, and penalty management.
Table of Contents
- Features
- Installation
- Quick Start
- Configuration
- Dependencies
- Commands
- Entities
- Advanced Usage
- Security
- Automated Scheduling
- License
Features
- Error Tracking: Monitor and collect JavaScript errors from WeChat Mini Programs
- Feedback Management: Collect and manage user feedback from mini programs
- Penalty Monitoring: Track transaction experience score violations
- Automated Synchronization: Scheduled commands for data synchronization
- Entity Management: Doctrine entities for structured data storage
Installation
Quick Start
1. Register the Bundle
Add the bundle to your config/bundles.php:
2. Configure Services
The bundle automatically registers its services. Make sure you have the required dependencies installed.
3. Database Setup
Create and run migrations for the entity tables:
Configuration
The bundle uses the WeChat Mini Program API client from
tourze/wechat-mini-program-bundle. Ensure your WeChat accounts are properly
configured with valid API credentials.
Example configuration in config/packages/wechat_mini_program.yaml:
Dependencies
This bundle requires the following packages:
- PHP 8.1 or higher
- Symfony 6.4 or higher
tourze/wechat-mini-program-bundle ^0.1- WeChat Mini Program API clienttourze/doctrine-timestamp-bundle ^0.0- Timestamp managementtourze/doctrine-snowflake-bundle ^0.1- Snowflake ID generationtourze/enum-extra ^0.1- Enhanced enum functionalitytourze/symfony-cron-job-bundle ^0.1- Automated task scheduling
Commands
The bundle provides four console commands for data synchronization:
Error Management
Feedback Collection
Penalty Monitoring
Entities
The bundle includes several entities for data management:
ErrorDetail: Detailed JavaScript error informationErrorListData: Aggregated error statisticsFeedback: User feedback dataPenaltyList: Transaction violation records
Advanced Usage
Custom Repository Usage
Event Listeners
Register custom event listeners to handle error data:
Security
Data Validation
All entities include comprehensive validation constraints to ensure data integrity:
- String length limits prevent database overflow
- Type validation ensures proper data types
- Enum validation restricts values to valid choices
Access Control
The bundle does not include built-in access control. Implement appropriate security measures in your application:
- Use Symfony Security component for authentication
- Implement proper authorization checks
- Validate API credentials securely
Sensitive Data
Be aware that this bundle processes:
- User feedback data
- Error information that may contain sensitive details
- OpenID identifiers
Ensure compliance with relevant data protection regulations.
Automated Scheduling
All commands are configured with cron expressions for automated execution:
- Error list sync: Daily at 3:06 AM and 11:35 AM
- Error detail sync: Daily at 4:02 AM and 8:22 AM
- Feedback collection: Hourly at 15 minutes past
- Penalty monitoring: Daily at 1:40 AM and 1:45 PM
Contributing
We welcome contributions! Please see our contributing guidelines for details on:
- How to submit issues
- How to submit pull requests
- Code style requirements
- Testing requirements
License
This bundle is under the MIT license. See the complete license in the bundle:
LICENSE
All versions of wechat-mini-program-log-bundle with dependencies
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
monolog/monolog Version ^3.1
nesbot/carbon Version ^2.72 || ^3
psr/log Version ^3|^2|^1
symfony/config Version ^7.3
symfony/console 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/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/easy-admin-enum-field-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/symfony-cron-job-bundle Version 1.1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-routing-auto-loader-bundle Version 1.0.*
tourze/wechat-mini-program-bundle Version 1.0.*