Download the PHP package echozzy/laravel-sms without Composer
On this page you can find all versions of the php package echozzy/laravel-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download echozzy/laravel-sms
More information about echozzy/laravel-sms
Files in echozzy/laravel-sms
Download echozzy/laravel-sms
More information about echozzy/laravel-sms
Files in echozzy/laravel-sms
Vendor echozzy
Package laravel-sms
Short Description The easiest way to send short message.
License MIT
Package laravel-sms
Short Description The easiest way to send short message.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-sms
laravel-sms
基于overtrue/easy-sms扩展修改
安装组件
composer require echozzy/laravel-sms
php artisan vendor:publish --provider='Zzy\LaravelSms\SmsServiceProvider'
配置文件
config/sms.php
使用
或者
短信内容
由于使用多网关发送,所以一条短信要支持多平台发送,每家的发送方式不一样,但是我们抽象定义了以下公用属性:
content
文字内容,使用在像云片类似的以文字内容发送的平台template
模板 ID,使用在以模板ID来发送短信的平台data
模板变量,使用在以模板ID来发送短信的平台
所以,在使用过程中你可以根据所要使用的平台定义发送的内容。
你也可以使用闭包来返回对应的值:
你可以根据 $gateway
参数类型来判断返回值,例如:
其他具体方法请查看overtrue/easy-sms
All versions of laravel-sms with dependencies
PHP Build Version
Package Version
The package echozzy/laravel-sms contains the following files
Loading the files please wait ....