luciuz / sms-ru
Sending sms via sms.ru
Installs: 5 021
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2025-04-24 06:42:52 UTC
README
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);