asorasoft / plasgate
Plasgate SMS 提供商的简单 PHP 包
v1.0.4
2021-11-21 03:57 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^5.3 || ^6.5 || ^7.2
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
README
Plasgate SMS 提供商的简单 PHP 包。
安装
您可以通过 composer 安装此包
composer require asorasoft/plasgate
然后将 PlasgateServiceProvider
类添加到 config/app.php
return [ "providers" => [ Asorasoft\Plasgate\PlasgateServiceProvider::class, ] ];
用法
您需要通过命令发布配置文件
php artisan vendor:publish --provider="Asorasoft\Plasgate\PlasgateServiceProvider"
需要更改 plasgate.php
配置,例如 token
、sender_Id
和 base_url
use Asorasoft\Plasgate\Plasgate; $plasgate = new Plasgate(); $response = $plasgate->send('phone', 'your_text_message'); // GuzzleHttp Response
测试
composer test
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG
贡献
有关详细信息,请参阅 CONTRIBUTING
安全
如果您发现任何与安全相关的问题,请通过电子邮件 mabhelitc@gmail.com 而不是使用问题跟踪器
致谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件