opendaje/ultramsg-client
最新稳定版本:v0.1.6
Composer 安装命令:
composer require opendaje/ultramsg-client
包简介
Ultramsg WhatsApp API based on PSR standard.
README 文档
README
Easy whatsApp integration in your applications
⚠ Launching early stage releases (0.x.x) could break the API according to Semantic Versioning 2.0. We are using minor for breaking changes.
This will change with the release of the stable 1.0.0 version.
Requirements
- PHP >= 8.0
- A PSR-18 implementation
About UltraMsg
Quick install
Via Composer.
This package is not tied to any specific library that sends HTTP messages. Instead, it uses Httplug to let users choose whichever PSR-7 implementation and HTTP client they want to use.
If you just want to get started quickly you should run the following command:
composer require opendaje/ultramsg-client symfony/http-client nyholm/psr7
This will install the library itself along with a symfony HTTP client adapter. You do not have to use those packages if you do not want to. The package does not care about which transport method you want to use because it's an implementation detail of your application. You may use any package that provides http-message-implementation.
Other available HTTP Clients
Example
... $options = new Options([ 'token' => 'MY_TOKEN', 'instanceId' => 'MY_INSTANCE_ID', ]); $client = new UltraMsgClient($options); // see src/Api/Messages methods $client->api('messages')->sendChatMessage('555-555-555', 'Hello!!!'); // see src/Api/Groups methods $client->api('groups')->getGroups();
统计信息
- 总下载量: 576
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-19