How w7corp/easywechat works
Project type and purpose
• EasyWeChat is an open-source PHP SDK (library) for integrating with WeChat’s various platforms (Official Account, Mini App, Open Platform, Open Work, Pay, etc.).
• It provides a unified, modular way to call WeChat APIs, handle incoming messages/webhooks, perform encryption/decryption, and manage access tokens.
File structure
• Top-level:
• composer.json, src/, tests/, docs/
• CI/CD and linting configs (.github/workflows, phpunit.xml, phpstan.neon, .php-cs-fixer.dist.php)
• src/ directory:
• Kernel/ – core abstractions (Contracts, HttpClient, Support, Encryptor, Traits)
• Modules: MiniApp/, OfficialAccount/, OpenPlatform/, OpenWork/, Pay/, Work/ – each contains Application, Config, AccessToken, Server, Message, Utils, etc.
• tests/ mirrors src/ structure to validate each module and Kernel.
• docs/ – VitePress-based documentation site, not part of runtime.
README
• Describes environment (PHP >=8.0), installation (Composer), basic usage example for OfficialAccount.
• No built-in UI or persistent storage – this is a library consumed by a PHP app.