2017 © Pedro Peláez
 

library sms

Several Georgian SMS APIs Integration

image

zgabievi/sms

Several Georgian SMS APIs Integration

  • Sunday, September 17, 2017
  • by zgabievi
  • Repository
  • 1 Watchers
  • 6 Stars
  • 74 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

laravel-georgian-sms

Latest Stable Version Total Downloads License, (*1)

Georgian SMS providers service integration for Laravel 5.* :sunglasses: Trying to make it perfect, easy to use and awesome package :tada: Pull requests are welcome., (*2)

Table of Contents

Installation

Composer

Run composer command in your terminal., (*3)

composer require zgabievi/sms

Laravel

For Laravel 5.5

If you are using Laravel 5.5, than installation is done. Otherwise follow next steps., (*4)

For Laravel <= 5.4

Open config/app.php, find the providers and add SMSServiceProvider to the array., (*5)

'providers' => [
    // ...
    Gabievi\SMS\SMSServiceProvider::class,
],

Find the aliases and add Facade to the array., (*6)

'aliases' => [
    // ...
    'SMS' => Gabievi\SMS\Facades\SMS::class,
],

Methods

Method MAGTI SMSOFFICE SMSCO
SMS::send($numbers, $message, $params = []) + + +
SMS::schedule($numbers, $message, $datetime) - - +
SMS::status($msg_id) + - +
SMS::balance() - + -
  • $numbers - comma separated numbers or number, with format: 9955XXXXXXXX
  • $message - Text message which will be sent to the numbers.
  • $params - Array of key => values that will be used as http query. (Use this only if you know what you are doing)
  • $datetime - Datetime in format Y-m-d H:i:s.
  • $msg_id - Message ID, which you will get from provider, to check status in future.

Allowed symbols to use in message:

Symbol Description
a-z Characters in the range between a and z (case sensitive)
A-Z Characters in the range between A and Z (case sensitive)
0-9 Character in the range between 0 and 9
. Point
_ Undercsore
- Dash
" Double Quotes
' Single Quote
Space

Config

Publish SMS config file using command:, (*7)

php artisan vendor:publish

This will create file config\sms.php:, (*8)

Default SMS Provider

You can specify any allowed sms service provider from list below:, (*9)

Allowed providers are: 'magti', 'smsoffice', 'smsco', (*10)

'default' => env('SMS_GATEWAY', 'margti'),

SMS Provider Credentials

Here you must specify credentials required from provider, (*11)

This credentials will be used in protocol, (*12)

'providers' => [

    'smsoffice' => [
        'key' => env('SMS_PASSWORD', 'SECRET_KEY'),
        'brand' => env('SMS_USERNAME', 'BRAND_NAME'),
    ],

    'smsco' => [
        'username' => env('SMS_USERNAME', 'USERNAME'),
        'password' => env('SMS_PASSWORD', 'PASSWORD'),
    ],

    'magti' => [
        'username' => env('SMS_USERNAME', 'USERNAME'),
        'password' => env('SMS_PASSWORD', 'PASSWORD'),
        'client_id' => env('SMS_CLIENT_ID', 'CLIENT_ID'),
        'service_id' => env('SMS_SERVICE_ID', 'SERVICE_ID'),
    ],

],

.ENV

You can configure provider credentials in your config or .env file, (*13)

KEY MAGTI SMSOFFICE SMSCO
SMS_GATEWAY + + +
SMS_USERNAME + BRAND +
SMS_PASSWORD + KEY +
SMS_CLIENT_ID + - -
SMS_SERVICE_ID + - -

License

laravel-georgian-sms is licensed under a MIT License., (*14)

The Versions

17/09 2017

dev-master

9999999-dev https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.1.0

1.1.0.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.8

1.0.8.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.7

1.0.7.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.6

1.0.6.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.5

1.0.5.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.4

1.0.4.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.3

1.0.3.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.2

1.0.2.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.1

1.0.1.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

17/09 2017

1.0.0

1.0.0.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

26/02 2016

0.2.2

0.2.2.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

26/02 2016

0.2.1

0.2.1.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

05/02 2016

0.2.0

0.2.0.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice

31/01 2016

0.1.0

0.1.0.0 https://github.com/zgabievi/sms

Several Georgian SMS APIs Integration

  Sources   Download

MIT

The Requires

 

by Avatar zgabievi

sms message msg sms api smsoffice