Download the PHP package tourze/wechat-work-jssdk-bundle without Composer
On this page you can find all versions of the php package tourze/wechat-work-jssdk-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package wechat-work-jssdk-bundle
Wechat Work JSSDK Bundle
中文
A Symfony bundle that provides WeChat Work (Enterprise WeChat) JSSDK integration with configuration generation, signature verification, and semantic annotation support.
Features
- JSSDK Configuration Generation: Generate WeChat Work JSSDK configuration with proper signature verification
- JSON-RPC API: Expose JSSDK configuration through JSON-RPC endpoints
- Semantic Annotations: Support for semantic tags like phone numbers, emails, red packets
- Test Interface: Built-in test controller for JSSDK functionality verification
- Ticket Management: Automatic handling of corp and agent JS API tickets
- Symfony Integration: Full integration with Symfony framework and dependency injection
Installation
Quick Start
1. Basic Configuration
Add the bundle to your config/bundles.php:
2. Generate JSSDK Configuration
The bundle provides a JSON-RPC procedure to generate JSSDK configuration:
3. Frontend Integration
Use the generated configuration in your frontend:
4. Test Interface
Access the test interface at /wechat/work/test/jssdk to verify JSSDK functionality.
API Reference
JSON-RPC Procedures
GetWechatWorkJssdkConfig
Generate JSSDK configuration for WeChat Work integration.
Parameters:
corpId(string): Enterprise IDagentId(string): Application IDurl(string): Current page URL (without # and following parts)
Returns:
corp(array): Corporation-level configurationagent(array): Agent-level configuration
Semantic Annotations
The bundle supports semantic annotations for common data types:
EmailAddress: Email address validation and formattingPhoneNumber: Phone number validation and formattingRedPacket: Red packet related semantics
Requirements
- PHP 8.1 or higher
- Symfony 6.4 or higher
- WeChat Work Bundle (
tourze/wechat-work-bundle) - JSON-RPC Core (
tourze/json-rpc-core)
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of wechat-work-jssdk-bundle with dependencies
doctrine/collections Version ^2.3
nesbot/carbon Version ^2.72 || ^3
symfony/config Version ^6.4
symfony/dependency-injection Version ^6.4
symfony/framework-bundle Version ^6.4
symfony/http-foundation Version ^6.4
symfony/http-kernel Version ^6.4
symfony/routing Version ^6.4
symfony/yaml Version ^6.4 || ^7.1
tourze/enum-extra Version 0.1.*
tourze/http-client-bundle Version 0.1.*
tourze/json-rpc-core Version 0.0.*
tourze/json-rpc-lock-bundle Version 0.1.*
tourze/wechat-work-bundle Version 0.1.*