coredev / laravel-globelabs
This package is abandoned and no longer maintained.
No replacement package was suggested.
A Laravel package for GlobeLabs API
v1.6
2021-09-17 00:42 UTC
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.3
- illuminate/contracts: 5.5.*|5.6.*|5.7.*|5.8.*
- illuminate/support: 5.5.*|5.6.*|5.7.*|5.8.*
README
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.