cali / yuntongxun-sms
云通讯短信
v1.2
2016-07-22 15:09 UTC
Requires
- php: >=5.5.9
- laravel/framework: 5.*
This package is auto-updated.
Last update: 2024-12-14 04:30:28 UTC
README
composer require cali/yuntongxun-sms
In config/app.php
:
Cali\YuntongxunSms\YuntongxunSmsServiceProvider::class,
In aliases array:
'SMS' => Cali\YuntongxunSms\Facade\YuntongxunSms::class,
php artisan vendor:publish
Write configuration inside of the .env
file in the root directory.
SMS::sendTemplateMessage($templateId, ['param1','param2'], $phone_number})
SMS::voiceVerify('123123','138xxxx')