2017 © Pedro Peláez
 

library sms-sender

Sending sms via api Epochta.

image

maksimusyan/sms-sender

Sending sms via api Epochta.

  • Tuesday, May 8, 2018
  • by maksimusyan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Sms Sender

Sending sms via api Epochta, (*1)

Library is published on the Composer: https://packagist.org/packages/maksimusyan/sms-sender, (*2)

Connect a stable version through the Composer:, (*3)

composer require maksimusyan/sms-sender, (*4)

{
    "require": {
        "maksimusyan/sms-sender": "^1.2"
    }
}

or the developer version directly from github:, (*5)

{
  "repositories": [
    {
      "type": "vcs",
      "url": "git://github.com/maksimusyan/sms-sender.git"
    }
  ],
    "require": {
        "maksimusyan/sms-sender": "dev-master"
    }
}

Basic Usage:

$provider = 'Epochta';
$config = array(
    'key_private' => 'YOUR_API_PRIVATE_KEY'
    ,'key_public' => 'YOUR_API_PUBLIC_KEY'
    //,'url_gateway' => 'http://api.atompark.com/sms/3.0/'
    //,'testmode' => false
);

$sms = new \Maksimusyan\SmsSender\Sender($provider,$config);

API methods

Send SMS:, (*6)

$data = array(
    'sender' => 'MYCOMPANY', // Sender ID. Maximum 11 characters
    'text' => 'You have successfully made a purchase', // Message text 
    'phone' => '79008881155', // Number of recipient
    'datetime' => '2018-05-01 00:20:00', // Sending at the set time
    'sms_lifetime' => '0' //SMS life time (0 = maximum, 1, 6, 12, 24 hour)
);
$sms->sendSMS($data);

Get balance:, (*7)

$currency = 'RUB'; // Available currencies: 'USD','GBP','UAH','RUB','EUR'
$balance = $sms->getBalance($currency);

Get country codes:, (*8)

$countries = $sms->getCountryCodes();

#, (*9)

The Versions

08/05 2018

dev-master

9999999-dev https://github.com/maksimusyan/sms-sender

Sending sms via api Epochta.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sms epochta

08/05 2018

1.2.1

1.2.1.0 https://github.com/maksimusyan/sms-sender

Sending sms via api Epochta.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sms epochta

07/08 2017

1.2.0

1.2.0.0 https://github.com/maksimusyan/sms-sender

Sending sms via api Epochta.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sms epochta

06/08 2017

1.1.2

1.1.2.0 https://github.com/maksimusyan/sms-sender

Sending sms via api Epochta.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sms epochta

06/08 2017

1.1.1

1.1.1.0 https://github.com/maksimusyan/sms-sender

Sending sms via api Epochta.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sms epochta