liuhelong / sms253
253sms SDK for Laravel
dev-master
2021-04-01 03:32 UTC
Requires
- php: >=7
- guzzlehttp/guzzle: ^7.2
This package is auto-updated.
Last update: 2025-03-01 00:32:27 UTC
README
安装
laravel >=7.0
$ composer require liuhelong/sms253
$ php artisan vendor:publish --provider="Liuhelong\Sms253\ServiceProvider"
参数配置
配置253短信接口参数 建议在env文件中配置
使用
<?php
*****
use Liuhelong\Sms253\Sms;
*****
$sms = new Sms;
$sms->send('mobile','message');
// 发送成功返回 true,否则抛出exception