Download the PHP package tourze/wechat-work-group-chat-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-work-group-chat-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wechat-work-group-chat-bundle
wechat-work-group-chat-bundle
中文
[]
(https://packagist.org/packages/tourze/wechat-work-group-chat-bundle)
[
]
(https://packagist.org/packages/tourze/wechat-work-group-chat-bundle)
[
]
(https://packagist.org/packages/tourze/wechat-work-group-chat-bundle)
[
]
(https://github.com/tourze/monorepo/actions)
[
]
(https://codecov.io/gh/tourze/monorepo)
A Symfony bundle for managing WeChat Work group chats (customer groups). This bundle provides entities, repositories, and synchronization functionality for WeChat Work group chat data.
Table of Contents
- Features
- Requirements
- Installation
- Configuration
- Quick Start
- Usage
- Entities
- Console Commands
- Repositories
- Advanced Usage
- Custom Repository Methods
- Event Integration
- Message Handlers
- Enumerations
- API Integration
- Development
- Contributing
- License
- Documentation
Features
- Group chat and member entity management
- Automatic synchronization of group chat data from WeChat Work API
- Support for group chat status tracking (normal, resigned, inheritance in progress, inheritance completed)
- Message queue integration for asynchronous processing
Requirements
- PHP 8.1+
- Symfony 6.4+
- Doctrine ORM
- Symfony Messenger
Installation
Configuration
This bundle automatically configures itself when installed. No additional configuration is required for basic usage.
Quick Start
Usage
Entities
GroupChat
Represents a WeChat Work customer group with the following properties:
- Chat ID
- Group name
- Status (normal, resigned, inheritance in progress, inheritance completed)
- Owner (user association)
- Admin list
- Member count
- Creation time
- Notice (group announcement)
GroupMember
Represents a member of a group chat with properties:
- Member type (internal/external)
- User ID
- Join scene (direct invitation, invitation link, QR code)
- Join time
- Invitor information
Console Commands
wechat-work:sync-group-chat-list
Synchronizes customer group data from WeChat Work to local database.
Repositories
GroupChatRepository: Provides methods for querying group chatsGroupMemberRepository: Provides methods for querying group members
Advanced Usage
Custom Repository Methods
Event Integration
The bundle dispatches events during synchronization that you can listen to:
Message Handlers
The bundle includes asynchronous message handlers for processing group chat synchronization:
SyncGroupChatDetailHandler: Processes individual group chat detail synchronization
Enumerations
GroupChatStatus
NORMAL(0): Following person is normalRESIGN(1): Following person has resignedINHERIT_DOING(2): Resignation inheritance in progressINHERIT_FINISHED(3): Resignation inheritance completed
API Integration
This bundle integrates with the WeChat Work API for:
- Getting group chat lists
- Getting group chat details
- Synchronizing member information
Development
Running Tests
Contributing
Please see CONTRIBUTING.md for details on how to contribute to this project.
- Submit bug reports and feature requests through GitHub issues
- Follow the coding standards and testing requirements
- Ensure all tests pass before submitting pull requests
License
The MIT License (MIT). Please see License File for more information.
Documentation
- WeChat Work Group Chat API Documentation
- Tourze Monorepo Documentation
All versions of wechat-work-group-chat-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 ^3.1 || ^4
nesbot/carbon Version ^2.72 || ^3
symfony/config Version ^6.4
symfony/console Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/doctrine-bridge Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-kernel Version ^6.4
symfony/messenger Version ^6.4
symfony/property-access Version ^6.4
symfony/routing Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/async-contracts Version 0.0.*
tourze/doctrine-indexed-bundle Version 0.0.*
tourze/doctrine-snowflake-bundle Version 0.1.*
tourze/doctrine-timestamp-bundle Version 0.0.*
tourze/easy-admin-attribute Version 0.1.*
tourze/enum-extra Version 0.1.*
tourze/http-client-bundle Version 0.1.*
tourze/symfony-cron-job-bundle Version 0.1.*
tourze/wechat-work-bundle Version 0.1.*
tourze/wechat-work-contracts Version 0.0.*
tourze/wechat-work-external-contact-bundle Version 0.0.*