laravel-globelabs maintained by coredev
Description
A Laravel package for GlobeLabs API
Author
Last update
2021/09/17 03:51
(dev-master)
License
Downloads
112
laravel-globelabs
Overview
A Laravel package for sending SMS through GlobeLabs SMS API.
Requirements
- Laravel 5.5+
- PHP 7+
- Guzzle 6+
Installation
You can install laravel-globelabs package via composer.
composer require coredev/laravel-globelabs
Configuration
Register provider and aliases on your config/app.php file.
'providers' => [
CoreDev\LaravelGlobeLabs\GlobeServiceProvider::class,
],
'aliases' => [
'Globe' => CoreDev\LaravelGlobeLabs\Globe::class,
],
Usage
You can use it in your controller like this:
use Globe;
Globe::send('phone_number', 'message', 'passphrase', 'app_id', 'app_secret', 'short_code');
//with optional mask name parameter (make sure your APP configured in GlobeLabs dashboard supports dynamic masked name)
Globe::send('phone_number', 'message', 'passphrase', 'app_id', 'app_secret', 'short_code', 'mask_name');
Credits
- (@kpdcdg)
- (@marklee138)
- (@breekoy)
Contribute
Please feel free to fork and send a pull request with your changes!
License
Released under the MIT License.