adedaramola/sendchamp-php-sdk
最新稳定版本:v1.0.0
Composer 安装命令:
composer require adedaramola/sendchamp-php-sdk
包简介
Sendchamp php sdk
README 文档
README
Simple php package to work with Sendchamp API
Installation
This package requires PHP 8.0+ and Composer. Then require the package in your project like so:
composer require adedaramola/sendchamp-php-sdk
Usage
<?php require __DIR__ '/../vendor/autoload.php'; use Adedaramola\Sendchamp\Sendchamp; // For production environment, provide "live" as second argument $sendchamp = new Sendchamp('api-public-key'); // Send sms $sendchamp->sms()->send([ 'to' => ['+2348132644971'], 'message' => 'This package is awesome', 'sender_name' => 'Adedaramola', 'route' => 'dnd' ]); // Get sms delivery report $sendchamp->sms()->getDeliveryReport('9173hqhb7837ydg'); // Get bulk sms delivery report $sendchamp->sms()->getBulkDeliveryReport('9173hqhb7837ydg'); // Send otp $sendchamp->otp()->send([ 'channel' => '', 'sender' => '', 'token_type' => '', 'token_length' => 6 ]); // Verify otp $sendchamp->otp()->verify($reference, $code); // Get wallet balance $sendchamp->wallet()->getBalance();
Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance or add missing functionalities.
Support
Kindly leave a star on the repo, this makes me glad. Reach out on twitter
Adedaramola Adetimehin.
统计信息
- 总下载量: 8.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-30