ridvanbaluyos / semaphore
适用于Sempahore SMS API的Laravel 4.2包。
v0.1
2015-01-18 17:43 UTC
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
This package is auto-updated.
Last update: 2024-09-12 19:13:33 UTC
README
Laravel 4.2的Semaphore API包
本包使用了Semaphore SMS API。
[ [ [ [ [)
目录
安装
打开您的composer.json
文件,并将以下内容添加到require
键中
"ridvanbaluyos/semaphore": "v0.1"
添加键后,从命令行运行composer update以安装包
composer update
将服务提供者添加到您的app/config/app.php
文件中的providers
数组中。
'Ridvanbaluyos\Semaphore\SemaphoreServiceProvider'
配置
在您开始使用此包之前,我们需要设置一些配置。为此,您必须首先发布配置文件,可以使用以下artisan
命令完成。
php artisan config:publish ridvanbaluyos/semaphore
用法
向用户发送短信
Semaphore::send('Welcome to Semaphore!', '639981234567');
账户状态
Semaphore::account();
消息日志
Semaphore::messages(); // fetches the first 100 logs Semaphore::messages(2); // fetches the next 100 logs or page 2