asorasoft / plasgate

Plasgate SMS 提供商的简单 PHP 包

v1.0.4 2021-11-21 03:57 UTC

This package is auto-updated.

Last update: 2024-09-21 10:20:53 UTC


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 配置,例如 tokensender_Idbase_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)。有关更多信息,请参阅 许可文件