2017 © Pedro Peláez
 

library smsc

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

image

awd-studio/smsc

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  • Friday, October 13, 2017
  • by awd-studio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 3 % Grown

The README.md

Latest Stable Version Total Downloads License, (*1)

SMSC

Simple library for sending SMS and other messages

An API for sending short messages with the SMSC services., (*2)

Supported gateways:, (*3)

  • https://smsc.ua
  • https://smsc.ru
  • https://smsc.kz
  • https://smsc.tj
  • https://smscentre.com

Installing

SMSC library can be installed directly from Composer., (*4)

composer require awd-studio/smsc

How to use:

Send messages

<?php

use Smsc\Settings\Settings;
use Smsc\Services\SmscMessage;

// Create new settings item
$settings = new Settings([
    'login' => $MY_LOGIN,
    'psw'   => $MY_PASSWORD
]);

// Create new message
$options = [
    'translit' => true, // Set transliteration
];
$sms = new SmscMessage($settings, $phones, $message, $options);

// Send SMS
$sms->send();

// Get response data
$response = $smsc->getData()->getResponse();
// Or get processed results
$response = $smsc->results();

Check balance

<?php

use Smsc\Settings\Settings;
use Smsc\Services\SmscBalance;

// Create new settings item
$settings = new Settings([
    'login' => $MY_LOGIN,
    'psw'   => $MY_PASSWORD
]);

// Create new balance
$balance = new SmscBalance($settings);

// Send request
$balance->send();

Get Sender-IDs

<?php

use Smsc\Settings\Settings;
use Smsc\Services\SmscSenders;

// Create new settings item
$settings = new Settings([
    'login' => $MY_LOGIN,
    'psw'   => $MY_PASSWORD
]);

// Create new balance
$senders = new SmscSenders($settings);
$senders->getSenders();

// Send request
$senders->send();

// Manage Sender IDs
$arr = $senders->results();

More examples

<?php

use Smsc\Settings\Settings;
use Smsc\Services\SmscMessage;

// Create new settings item
$settings = new Settings([
    'login' => $MY_LOGIN,
    'psw'   => $MY_PASSWORD
]);
$sms = new SmscMessage($settings, $phones, $message, $options);

// Send MMS
$sms->mms($theme = 'My message theme');
$sms->send();

// Send E-mail
$sms->email($theme = 'My message theme');
$sms->send();

// Send Viber
$sms->viber();
$sms->send();

// Send HLR
$sms->hlr();
$sms->send();

// Send Flash-SMS
$sms->flash();
$sms->send();

// Send Ping-SMS
$sms->ping();
$sms->send();

// Voice message
$sms->call('w3'); // Voice call with women alternative voice #2.
$sms->send();

// Set additional options
$options = [
    'id'      => 123,        // Set SMS ID
    'time'    => $timestamp, // Set SMS sending time
    'valid'   => 10,         // Set SMS live time for 100 hours
    'tinyurl' => true,       // Automate short URL's
];
$sms = new SmscMessage($settings, $phones, $message, $options);
$sms->send();

More information here., (*5)

The Versions

13/10 2017

dev-master

9999999-dev https://github.com/awd-studio/smsc

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

13/10 2017

v0.4.2

0.4.2.0 https://github.com/awd-studio/smsc

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

24/09 2017

v0.4.1

0.4.1.0

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

23/09 2017

v0.4.0

0.4.0.0

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

15/09 2017

v0.3.9

0.3.9.0

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

14/09 2017

v0.3.8

0.3.8.0

An API for sending messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

by Anton Karpov

api sms smsc

30/08 2017

v0.3.7

0.3.7.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

30/08 2017

v0.3.6

0.3.6.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

30/08 2017

v0.3.5

0.3.5.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

28/08 2017

v0.3.4

0.3.4.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

28/08 2017

v0.3.3

0.3.3.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

27/08 2017

v0.3.2

0.3.2.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

27/08 2017

v0.3.1

0.3.1.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

27/08 2017

v0.3.0

0.3.0.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

27/08 2017

v0.2.0

0.2.0.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov

24/08 2017

v0.1.0

0.1.0.0

An API for sending short messages with the https://smsc.ua / https://smsc.ru / https://smsc.kz / https://smsc.tj / https://smscentre.com services.

  Sources   Download

MIT

by Anton Karpov