2017 © Pedro Peláez
 

library sms-ru

Sending sms via sms.ru

image

luciuz/sms-ru

Sending sms via sms.ru

  • Friday, April 27, 2018
  • by luciuz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 885 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 93 % Grown

The README.md

luciuz/sms-ru

Sending sms via sms.ru, (*1)

Examples

Init, (*2)

$smsRu = new SmsRu('API-ID-TOKEN');

Sending single sms, (*3)

// with From
$result = $smsRu->setFrom('MYCOMPANY')
    ->send(new Sms('+79123456789', 'Some text'));

// without From
$result = $smsRu->send(new Sms('+79123456789', 'Some text'));

Sending multiple sms, (*4)

$smsBundle = [
    new Sms('+79123456789', 'Some text'),
    new Sms('+79123456790', 'Some message'),
    new Sms('+79123456791', 'Some notification')
];
// with From
$result = $smsRu->setFrom('MYCOMPANY')
    ->sendMulti($smsBundle);

// without From
$result = $smsRu->sendMulti($smsBundle);

The Versions

27/04 2018

dev-master

9999999-dev

Sending sms via sms.ru

  Sources   Download

MIT

The Requires

 

by Vasilii Arnautov

sms

27/04 2018

1.0.3

1.0.3.0

Sending sms via sms.ru

  Sources   Download

MIT

The Requires

 

by Vasilii Arnautov

sms

26/04 2018

1.0.2

1.0.2.0

Sending sms via sms.ru

  Sources   Download

MIT

The Requires

 

by Vasilii Arnautov

sms

24/04 2018

1.0.1

1.0.1.0

Sending sms via sms.ru

  Sources   Download

MIT

The Requires

 

by Vasilii Arnautov

sms

02/04 2018

1.0.0

1.0.0.0

Sending sms via sms.ru

  Sources   Download

MIT

The Requires

 

by Vasilii Arnautov

sms