kubill/emay-for-laravel

emay SMS for laravel5.*

1.0.1 2018-01-11 17:16 UTC

This package is auto-updated.

Last update: 2024-04-29 03:53:43 UTC


README

亿美短信接口轮子

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).