umuttaymaz / laravel-verimor-sms
Verimor SMSAPI for Laravel applications
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/umuttaymaz/laravel-verimor-sms
Requires
- php: >=5.6.4
- illuminate/support: ^5.1|^5.2|^5.3
Requires (Dev)
- mockery/mockery: ^0.9.5
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2022-12-07 14:37:07 UTC
README
This package makes it easy to send notifications using VerimorSMS with Laravel 5.3+.
Contents
Installation
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 ]
Setting up the VerimorSMSAPI service
Add your Verimor username, password and default sender name to your .env:
VERIMOR_USERNAME=username
VERIMOR_PASSWORD=apiPassword
VERIMOR_HEADER=verifiedHeader
Usage
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'); });
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email umut@kreator.com.tr instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.