Download the PHP package tourze/wechat-work-group-welcome-template-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-work-group-welcome-template-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tourze/wechat-work-group-welcome-template-bundle
More information about tourze/wechat-work-group-welcome-template-bundle
Files in tourze/wechat-work-group-welcome-template-bundle
Package wechat-work-group-welcome-template-bundle
Short Description 客户联系-入群欢迎语素材
License MIT
Informations about the package wechat-work-group-welcome-template-bundle
WechatWork Group Welcome Template Bundle
中文
A Symfony bundle for managing WeChat Work group welcome templates. This bundle provides entities, repositories, and API requests for creating, editing, and managing welcome messages that are sent to new group members.
Table of Contents
- Features
- Installation
- Quick Start
- Configuration
- API Requests
- Entity Properties
- Event Listeners
- Advanced Usage
- Testing
- Requirements
- License
- References
Features
- Entity Management: Doctrine ORM entities for group welcome templates
- API Integration: Request classes for WeChat Work external contact API
- Rich Content Support: Support for text, images, links, mini-programs, files, and videos
- Automatic Sync: Event listeners for automatic synchronization with WeChat Work
- Comprehensive Testing: Full test coverage with PHPUnit
Installation
Install the bundle via Composer:
Quick Start
1. Create a Group Welcome Template
2. Create API Request Manually
3. Rich Content Templates
Configuration
The bundle automatically configures services. No additional configuration is required.
Service Configuration
Services are automatically registered:
WechatWorkGroupWelcomeTemplateBundle\Repository\GroupWelcomeTemplateRepositoryWechatWorkGroupWelcomeTemplateBundle\EventSubscriber\GroupWelcomeTemplateListener
API Requests
The bundle provides several request classes for WeChat Work API:
AddGroupWelcomeTemplateRequest
EditGroupWelcomeTemplateRequest
DeleteGroupWelcomeTemplateRequest
GetGroupWelcomeTemplateRequest
Entity Properties
The GroupWelcomeTemplate entity includes:
- Basic Properties:
agent,templateId,notify - Text Content:
textContent - Image:
imageMedia,imagePicUrl - Link:
linkTitle,linkUrl,linkDesc,linkPicUrl - Mini-program:
miniprogramTitle,miniprogramAppId,miniprogramPage,miniprogramMedia - File:
fileMedia - Video:
videoMedia - Tracking: Created/updated timestamps, user blame, IP tracking
Event Listeners
The bundle includes automatic event listeners:
- prePersist: Creates template in WeChat Work when saving new entities
- preUpdate: Updates template in WeChat Work when modifying entities
- postRemove: Deletes template from WeChat Work when removing entities
Advanced Usage
Custom Event Listeners
You can create custom event listeners for additional functionality:
Repository Extensions
Extend the repository for custom queries:
Batch Operations
For bulk operations, you can disable automatic sync:
Testing
Run the test suite:
Test Coverage
The bundle includes comprehensive test coverage:
- Entity Tests: Test GroupWelcomeTemplate entity properties and methods
- Repository Tests: Test repository construction and basic functionality
- Request Tests: Test API request classes and data transformation
- Event Listener Tests: Test automatic synchronization with WeChat Work
- Dependency Injection Tests: Test bundle configuration and service registration
Requirements
- PHP 8.1+
- Symfony 6.4+
- Doctrine ORM 3.0+
- tourze/wechat-work-bundle
- tourze/wechat-work-media-bundle
License
This bundle is released under the MIT License. See the bundled LICENSE file for details.
References
All versions of wechat-work-group-welcome-template-bundle with dependencies
doctrine/dbal Version ^4.0
doctrine/doctrine-bundle Version ^2.13
doctrine/doctrine-fixtures-bundle Version ^4.0
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
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/serializer Version ^7.3
symfony/yaml Version ^7.3
tourze/bundle-dependency Version 1.*
tourze/doctrine-indexed-bundle Version 1.0.*
tourze/doctrine-ip-bundle Version 1.1.*
tourze/doctrine-snowflake-bundle Version 1.1.*
tourze/doctrine-timestamp-bundle Version 1.1.*
tourze/doctrine-track-bundle Version 1.1.*
tourze/doctrine-user-bundle Version 1.0.*
tourze/easy-admin-menu-bundle Version 1.0.*
tourze/http-client-bundle Version 1.1.*
tourze/symfony-dependency-service-loader Version 1.0.*
tourze/wechat-work-bundle Version 1.1.*
tourze/wechat-work-contracts Version 1.0.*
tourze/wechat-work-media-bundle Version 0.2.*