coredev/laravel-globelabs

A Laravel package for GlobeLabs API

v1.5 2019-06-06 07:18 UTC

README

Overview

A simple Laravel package for 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');

Credits

Contribute

Please feel free to fork and send a pull request with your changes!

License

Released under the MIT License.