kubill / larasms
laravel send sms library
dev-master
2018-05-11 09:52 UTC
This package is auto-updated.
Last update: 2025-04-29 00:59:40 UTC
README
this is a sms library for laravel
Version Compatibility
Sms Provider | Version | Support |
---|---|---|
more provider | coming soon |
Installation
Install using composer:
composer require kubill/larasms
Laravel version < 5.5 (optional)
Add the service provider in config/app.php
:
\Kubill\LaraSms\SmsServiceProvider::class,
And add the Sms
alias to config/app.php
:
'Sms' => \Kubill\LaraSms\Facades\Sms::class,
Then run these commands to publish configļ¼
php artisan vendor:publish --provider="Kubill\LaraSms\SmsServiceProvider"
Basic Usage
use the Sms
Facade:
simple
use \Kubill\LaraSms\Facades\Sms; Sms::send('hello world', '188xxxxxxxx');
batch
use \Kubill\LaraSms\Facades\Sms; Sms::batchSend('hello world', array('188xxxxxxxx', '189xxxxxxxx'));
License
LaraSms is licensed under The MIT License (MIT).