leandronunes07/evolution-php-sdk
Composer 安装命令:
composer require leandronunes07/evolution-php-sdk
包简介
Unofficial PHP SDK for Evolution API
README 文档
README
Unofficial PHP SDK for Evolution API. Simplify your WhatsApp automations with a robust, object-oriented PHP wrapper.
This SDK provides a fluent and expressive interface to interact with Evolution API v2, supporting multi-instance management, message sending (Text, Media, Templates), group administration, and seamless integrations with AI platforms like OpenAI and Typebot.
🌟 About
The Evolution PHP SDK was built to standardize integrations with Evolution API in PHP projects. It abstracts the complexity of raw HTTP requests, providing a typed, documented, and easy-to-use codebase.
Whether you are building a simple chatbot or a complex multi-tenant automation system, this SDK ensures your code remains clean, maintainable, and scalable.
👨💻 Authors
Developed with ❤️ by Agência Taruga and Leandro Oliveira Nunes.
🚀 Features
- Object-Oriented: Fluid API design (
$client->instances()->create(...)). - Type Safety: Use of DTOs (Data Transfer Objects) for safer payloads.
- Full Coverage: Support for Messages, Groups, Profiles, Chatbots (Typebot, OpenAI, Dify, etc.), and Events.
- Webhook Handling: Utility class to parse and process incoming webhook events.
- Logging: PSR-3 compatible logging support for debugging requests.
- Standards: PSR-12 Compliant code quality.
- Authentication: Easy management of Global and Instance API Keys.
📦 Installation
Install via Composer:
composer require leandronunes07/evolution-php-sdk
⚡ Quick Start
use LeandroNunes\Evolution\EvolutionClient; use LeandroNunes\Evolution\Config; use LeandroNunes\Evolution\DTO\Message\TextMessageDTO; // 1. Setup Configuration $config = new Config( baseUrl: 'https://api.your-evolution-instance.com', globalApiKey: 'YOUR-GLOBAL-API-KEY' ); // 2. Initialize Client $client = new EvolutionClient($config); // 3. Send a Message $message = new TextMessageDTO( number: '5511999999999', text: 'Hello from PHP SDK! 🐘' ); $response = $client->messages()->sendText('instanceName', $message); print_r($response);
📖 Documentation
- Exemplos de Uso (EXAMPLES.md): Lista completa de exemplos para todos os recursos (Mídia, Grupos, Bots, etc).
- Contribuição (CONTRIBUTING.md): Como rodar testes e contribuir.
🛠️ Supported Resources
- Instances: Create, Connect, Restart, Logout, Delete.
- Messages: Text, Media, Audio, Template, Location, Contact.
- Groups: Create, Update, Participants, Settings.
- Integrations:
- Events: Webhook, RabbitMQ, SQS, Websocket.
- Events: Webhook, RabbitMQ, SQS, Websocket.
- Chatbots: Typebot, OpenAI, Dify, Flowise, N8N, EvolutionBot.
- Utilities: Webhook Handler (Parse incoming events).
🧪 Testing
composer install ./vendor/bin/phpunit
📄 License
MIT License - Copyright (c) 2024 Agência Taruga - Leandro Oliveira Nunes
leandronunes07/evolution-php-sdk 适用场景与选型建议
leandronunes07/evolution-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 165 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「sdk」 「integration」 「whatsapp」 「chatbot」 「evolution-api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 leandronunes07/evolution-php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 leandronunes07/evolution-php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 leandronunes07/evolution-php-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
Laravel integration for blade-to-react
The missing social authentication for thephpleague/oauth2-server, adapted from schedula/league-oauth2-social
Magento 2 Integration Suite
This library is an integration of `codekandis/authentication` into `codekandis/tiphy`.
统计信息
- 总下载量: 165
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-08