Download the PHP package tourze/wechat-mini-program-subscribe-message-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-mini-program-subscribe-message-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/wechat-mini-program-subscribe-message-bundle
More information about tourze/wechat-mini-program-subscribe-message-bundle
Files in tourze/wechat-mini-program-subscribe-message-bundle
Package wechat-mini-program-subscribe-message-bundle
Short Description 微信小程序订阅消息功能Bundle
License MIT
Informations about the package wechat-mini-program-subscribe-message-bundle
WeChat Mini Program Subscribe Message Bundle
中文
A Symfony bundle for managing WeChat Mini Program subscribe messages. This bundle provides comprehensive functionality for handling subscribe message categories, templates, and message sending with an intuitive admin interface.
Table of Contents
- Features
- Installation
- Configuration
- Quick Start
- Advanced Usage
- Expression Language Functions
- Working with Templates
- Event Handling
- Commands
- wechat:mini-program:sync-subscribe-categories
- wechat-mini-program:sync-subscribe-template
- Admin Interface
- Security
- Contributing
- Dependencies
- License
Features
- Subscribe Categories Management: Automatically sync and manage subscribe message categories from WeChat API
- Template Management: Sync and manage subscribe message templates with parameters
- Message Sending: Send subscribe messages to users with expression language support
- Admin Interface: Complete EasyAdmin CRUD controllers for data management
- Cron Job Integration: Automatic synchronization with configurable schedules
- Event System: Event-driven architecture for message handling and logging
- Expression Language: Dynamic message content with expression language support
Installation
Install the bundle via Composer:
Add the bundle to your config/bundles.php:
Configuration
The bundle integrates with the WeChat Mini Program Bundle configuration. Make sure you have configured your WeChat Mini Program account credentials:
Optionally, you can configure the bundle's specific settings:
Quick Start
-
Configure your WeChat Mini Program account credentials in your WeChat Mini Program Bundle configuration.
-
Run the database migration to create required tables:
-
Sync subscribe categories and templates from WeChat API:
- Send a subscribe message:
Advanced Usage
Expression Language Functions
The bundle provides expression language functions for dynamic message sending:
Working with Templates
Event Handling
The bundle dispatches events during message processing:
Commands
wechat:mini-program:sync-subscribe-categories
Synchronizes subscribe message categories from WeChat API.
- Schedule: Every 2 hours at 11 minutes past the hour
- Function: Fetches and updates categories for all valid WeChat accounts
wechat-mini-program:sync-subscribe-template
Synchronizes subscribe message templates from WeChat API.
- Schedule: Every 4 hours at 15 minutes past the hour
- Function: Fetches templates and their parameters
Admin Interface
Access the admin interface through EasyAdmin controllers:
- Subscribe Categories: Manage message categories
- Subscribe Templates: Manage message templates
- Subscribe Parameters: Configure template parameters
- Message Logs: View sent message history
- Send Logs: Monitor message delivery status
Security
This bundle handles sensitive WeChat API credentials. Ensure:
- Keep your WeChat API credentials secure
- Use environment variables for sensitive configuration
- Regularly rotate API keys
- Monitor access to admin interfaces
- Validate all user inputs before sending messages
Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Write tests for your changes
- Follow PSR-12 coding standards
- Submit a pull request
Dependencies
This bundle requires the following main dependencies:
- PHP: ^8.1
- Symfony: ^6.4
- Doctrine ORM: ^3.0
- EasyAdmin Bundle: ^4
- WeChat Mini Program Bundle: tourze/wechat-mini-program-bundle
See composer.json for the complete list of dependencies.
License
This bundle is licensed under the MIT License. See the LICENSE file for details.
All versions of wechat-mini-program-subscribe-message-bundle with dependencies
doctrine/collections Version ^2.3
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
psr/log Version ^3|^2|^1
psr/simple-cache Version ^1.0|^2.0|^3.0
symfony/config Version ^7.3
symfony/console Version ^7.3
symfony/dependency-injection Version ^7.3
symfony/doctrine-bridge Version ^7.3
symfony/event-dispatcher Version ^7.3
symfony/event-dispatcher-contracts Version ^3
symfony/expression-language Version ^7.3
symfony/framework-bundle Version ^7.3
symfony/http-foundation Version ^7.3
symfony/http-kernel Version ^7.3
symfony/property-access Version ^7.3
symfony/routing Version ^7.3
symfony/security-core Version ^7.3
symfony/security-http Version ^7.3
symfony/serializer Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-async-insert-bundle Version 1.0.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-resolve-target-entity-bundle Version 1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/enum-extra Version 1.0.*
tourze/http-client-bundle Version 1.1.*
tourze/symfony-cron-job-bundle Version 1.1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/symfony-schedule-entity-clean-bundle Version 1.1.*
tourze/wechat-mini-program-appid-contracts Version 1.0.*
tourze/wechat-mini-program-auth-bundle Version 1.0.*
tourze/wechat-mini-program-bundle Version 1.0.*
tourze/wechat-mini-program-server-message-bundle Version 0.1.*
tourze/wechat-mini-program-user-contracts Version 1.0.*
yiisoft/arrays Version ^3
yiisoft/json Version ^1.0