Skip to content

luciuz/sms-ru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

luciuz/sms-ru

Sending sms via sms.ru

Examples

Init

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

Sending single sms

// 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

$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);

About

Sending sms via sms.ru

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages