2017 © Pedro Peláez
 

library turbo-sms

Package for TurboSMS service(http://turbosms.ua/)

image

newway/turbo-sms

Package for TurboSMS service(http://turbosms.ua/)

  • Friday, August 26, 2016
  • by yaapis
  • Repository
  • 3 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Package for [TurboSMS] (http://turbosms.ua/) for Laravel 5

This package still in beta. The main problem - SOAP API from TurboSMS (be realists - it's awful). I've contact with TurboSMS's support - lets see what they will do with my request..., (*1)

Installation

Require this package in your composer.json:, (*2)

"newway/turbo-sms": "dev-master"

And add the ServiceProvider to the providers array in config/app.php, (*3)

'Newway\TurboSms\ServiceProvider',

Publish config using artisan CLI (if you want to overwrite default config)., (*4)

php artisan vendor:publish --tag="config"

You can register the facade in the aliases key of your config/app.php file., (*5)

'aliases' => array(
    'TurboSms'  => 'Newway\TurboSms\Facade',
)

Package config

    return array(

        /*
        |--------------------------------------------------------------------------
        | URL
        |--------------------------------------------------------------------------
        |
        | URL for the SOAP API
        |
        */

            'url'      => 'http://turbosms.in.ua/api/wsdl.html',
        /*
        |--------------------------------------------------------------------------
        | Credentials for auth
        |--------------------------------------------------------------------------
        */

            'auth' => [

                    'login'    => env('TURBO_SMS_LOGIN'),
                    'password' => env('TURBO_SMS_PASSWORD'),
            ],

        /*
        |--------------------------------------------------------------------------
        | Sender name
        |--------------------------------------------------------------------------
        */

            'sender'   => env('TURBO_SMS_SENDER'),


    );

Usage

try {
    $balance = Newway\TurboSms\Facade::getBalance();
    print_r($balance);

    $message_id = Newway\TurboSms\Facade::send('Test message', '+38099999999');
    print_r($message_id);

    $status = Newway\TurboSms\Facade::getStatus($message_id);
    print_r($status);
} catch (Newway\TurboSms\Exceptions\TurboSmsException $e) {}

The Versions

26/08 2016

dev-master

9999999-dev

Package for TurboSMS service(http://turbosms.ua/)

  Sources   Download

MIT

The Requires

 

by Bilyk Andrey

laravel sms turbosms send text messages

27/11 2015

dev-laravel_5_1

dev-laravel_5_1

Package for TurboSMS service(http://turbosms.ua/)

  Sources   Download

MIT

The Requires

 

by Bilyk Andrey

laravel sms turbosms send text messages

27/11 2015

1.1

1.1.0.0

Package for TurboSMS service(http://turbosms.ua/)

  Sources   Download

MIT

The Requires

 

by Bilyk Andrey

laravel sms turbosms send text messages

28/03 2015

1.0

1.0.0.0

Package for TurboSMS service(http://turbosms.ua/)

  Sources   Download

MIT

The Requires

 

by Bilyk Andrey

laravel sms turbosms send text messages