imrostom/muthofun

Laravel MuthoFun 短信支付网关 API

1.1 2021-03-06 03:25 UTC

This package is auto-updated.

Last update: 2024-09-06 10:58:58 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

Muthofun SMS GATEWAY 是 MUTHOFUN 短信网关 API 的 LARAVEL 客户端

安装

您可以通过 composer 安装此包

composer require imrostom/muthofun

使用

在您的控制器中使用此命名空间

use Imrostom\Muthofun\Facade\Muthofun;

配置

发布 muthofun 配置文件并配置您的 mutofun 信息。

return [
    'username' => 'imrostom',
    'password' => '123456',
    'unicode'  => 1, // 1 or 0
    'database' => true,
    'demo'     => true,
    'version'  => '1.0',
];

向单个用户发送消息

$response = Muthofun::messages(['mobile'=> '+0145465', 'message'=> 'a demo message'])->send();

向多个用户发送消息

$response = Muthofun::messages([['mobile'=> '+0145465', 'message'=> 'a demo message'], ['mobile'=> '+0145465', 'message'=> 'a demo message']])->send();

测试

composer test

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

贡献

有关详细信息,请参阅 CONTRIBUTING

安全性

如果您发现任何与安全相关的问题,请通过电子邮件 rostomali4444@gmail.com 联系,而不是使用问题跟踪器。

鸣谢

许可证

MIT 许可证(MIT)。有关更多信息,请参阅 许可证文件