Looking to hire Laravel developers? Try LaraJobs

emay-for-laravel maintained by kubill

Description
emay SMS for laravel5.*
Author
Last update
2018/02/27 07:22 (dev-master)
License
Downloads
19

Comments
comments powered by Disqus

EmaySMS

亿美短信接口轮子

Installation

Install using composer:

composer require kubill/emay-for-laravel

Laravel version < 5.5 (optional)

Add the service provider in config/app.php:

Kubill\Emay\EmayServiceProvider::class,

And add the Agent alias to config/app.php:

'Emay' => Kubill\Emay\Facades\Emay::class,

Basic Usage

Start by creating an Emay instance (or use the Emay Facade if you are using Laravel):

use Kubill\Emay\Emay;

$emay = new Emay();
$emay->send(138xxxxxxxx,'hello world');

OR

use Kubill\Emay\Emay;
Emay::send(138xxxxxxxx,'hello world');

License

Laravel User Agent is licensed under The MIT License (MIT).