Skip to content

yarcode/epochta-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YarCode\EpochtaSMS\Api

PHP class for working with epochtasms.ru API by YarCode Team.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yarcode/epochta-sms "*"

or add

"yarcode/epochta-sms": "*"

to the require section of your composer.json.

Usage

Authorization:

$api = new \YarCode\EpochtaSMS\Api($privateKey, $publicKey, true);

Sending text message:

$api->sendSMS('Sender', 'Text message', '79112223344');

Sending messages to a group of recipients:

$api->sendSMSGroup('Sender', 'Text message', ['79005552525', '78885552233'], '2017-01-19 00:00:00', 0);

Balance:

$api->getUserBalance();

Licence

MIT

Links