scolib/laravel-easy-sms

v1.0.0 2019-05-22 12:32 UTC

This package is auto-updated.

Last update: 2024-11-23 00:23:40 UTC


README

Easy SMS For Laravel 5.*

Latest Stable Version Total Downloads Latest Unstable Version License Analytics Code Climate

Install

Via Composer

$ composer require scolib/laravel-easy-sms

Publish Configuration

php artisan vendor:publish --provider "Sco\LaravelEasySms\LaravelServiceProvider"

Usage

EasySms::send(13188888888, [
    'content'  => '您的验证码为: 6379',
    'template' => 'SMS_001',
    'data' => [
        'code' => 6379
    ],
]);

// .....
$order = ...;
$message = new OrderPaidMessage($order);

EasySms::send(13188888888, $message);

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email slice1213@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.