2017 © Pedro Peláez
 

library laravel-textmagic

Laravel 5 integration of the Textmagic SMS API

image

js0nvr/laravel-textmagic

Laravel 5 integration of the Textmagic SMS API

  • Monday, May 30, 2016
  • by js0n
  • Repository
  • 1 Watchers
  • 0 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Laravel Textmagic

This is a Laravel 5 wrapper for the Textmagic SMS API v2 PHP, (*1)

What is Textmagic?

TextMagic SMS API is a platform for building your own messaging app using our messaging infrastructure. It allows you to send and receive SMS text messages, query information about inbound and outbound messages, manage contacts, create templates (i.e. message formats and static texts) and schedule recurrent SMS messages as well as process bulk SMS messages., (*2)

https://www.textmagic.com/docs/api/ https://rest.textmagic.com/api/v2/doc, (*3)

Basic Installation

Add the service provider to the providers array in config/app.php:, (*4)

...
Onwwward\Textmagic\TextmagicServiceProvider::class,
...

You can optionally use the facade for shorter code. Add the facade to the alias array in config/app.php:, (*5)

...
'Textmagic' => Onwwward\Textmagic\Facade\Textmagic::class,
...

Configuration

After adding the API key to your account, you'll need to provide the username and token. In Laravel you can publish the configuration file with artisan., (*6)

$ php artisan vendor:publish --provider="Onwwward\Textmagic\TextmagicServiceProvide" --tag="config"

Where's the file? Laravel 5 will publish the config file to /config/textmagic.php., (*7)

Required config values

You'll need to update the username and token values in the config file with your username and token., (*8)

Code Example

  $text = "This is a Textmagic test message";
  $numbers = ['01234567891', '01234567891', '01234567891'];

  Textmagic::trigger('messages','create', [
      'text' => $text,
        'phones' => $numbers
    ]);  

Todo

  • Add more detailed logging
  • Add ability to attach callback if request fails
  • Add unit tests

License

This plugin is released under the permissive MIT license. Your contributions are always welcome., (*9)

The Versions

30/05 2016

dev-master

9999999-dev

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven

30/05 2016

v1.3

1.3.0.0

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven

30/05 2016

v1.2

1.2.0.0

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven

30/05 2016

v1.1

1.1.0.0

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven

24/03 2016

v1.0

1.0.0.0

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven

10/02 2016

dev-dev-temp

dev-dev-temp

Laravel 5 integration of the Textmagic SMS API

  Sources   Download

MIT

The Requires

 

by Roland Kalocsaven