2017 © Pedro Peláez
 

library transmitsms-api

Provides support for SMS providers using the TransmitSMS backend and pacakges the existing PHP class file as a composer package

image

abreeden/transmitsms-api

Provides support for SMS providers using the TransmitSMS backend and pacakges the existing PHP class file as a composer package

  • Monday, December 29, 2014
  • by abreeden
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

TransmitSMS-API for Laravel

Provides an implementation for the TransmitSMS-API as used by BurstSMS (burstsms.com.au), (*1)

Original class was developed by BurstSMS and packaged by abreeden for use in Laravel 4. This package have been update for Laravel 5., (*2)

Installation

Once you have installed this package, you will need to add the service provider to the providers array in app.php config file:, (*3)

Abreeden\TransmitsmsApi\TransmitsmsApiServiceProvider

or, (*4)

Abreeden\TransmitsmsApi\TransmitsmsApiServiceProvider::class

Next, you may want to add the TransmitSMS facade. To do that, you will need to add under the aliases array, also in the app.php config file:, (*5)

'TransmitSMS' => Abreeden\TransmitsmsApi\Facades\TransmitsmsApiFacade

or, (*6)

'TransmitSMS' => Abreeden\TransmitsmsApi\Facades\TransmitsmsApiFacade::class

Finally, you will need to publish the config file using the following command:, (*7)

$ php artisan vendor:publish --provider="Abreeden\TransmitsmsApi\TransmitsmsApiServiceProvider"

Remember to set your API and secret keys in the config file or .env file!, (*8)

Documentation

To send a message you will require an account with a provider using the TransmitSMS API such as BurstSMS. Use the following syntax to initialise and send a message in Laravel 5., (*9)

Without facade:, (*10)

$sms = new \Abreeden\TransmitsmsApi\TransmitsmsApi("API_KEY", "SECRET");
$result = $sms->sendSms("Message goes here", "Destination Number", "From");

With facade:, (*11)

$result = \TransmitSMS::sendSms("Message goes here", "Destination Number", "From");

The Versions

29/12 2014

dev-master

9999999-dev

Provides support for SMS providers using the TransmitSMS backend and pacakges the existing PHP class file as a composer package

  Sources   Download

The Requires

 

by Ashley Breeden