This package makes it easy to send notifications using VerimorSMS with Laravel 5.3+.
You can install the package via composer:
composer require umuttaymaz/laravel-verimor-sms
Then you must install the service provider:
// config/app.php
'providers' => [
...
UmutTaymaz\VerimorSMSAPI\VerimorServiceProvider::class
],
'alias' => [
...
'Verimor' => UmutTaymaz\VerimorSMSAPI\Facades\Verimor::class
]
Add your Verimor username, password and default sender name to your .env
:
VERIMOR_USERNAME=username
VERIMOR_PASSWORD=apiPassword
VERIMOR_HEADER=verifiedHeader
return Verimor::send('Example Message', function ($sms){
$sms->to(['phoneNumber1', 'phoneNumber2']);
});
or
return Verimor::send('Example Message', function ($sms){
$sms->to('phoneNumber');
});
If you want to send SMS with another header instead of env variable:
return Verimor::header('anotherHeader')->send('Example Message', function ($sms){
$sms->to('phoneNumber');
});
Please see CHANGELOG for more information what has changed recently.
$ composer test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.