granam / smsbranacz
SMSBrana.cz allows sending paid SMS via API
2.0.1
2018-04-06 14:30 UTC
Requires
- php: >=7.1
- granam/strict-object: ^3.0
- granam/string: ^2.1
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ~6.0
- roave/security-advisories: dev-master
README
<?php use \Granam\SmsBranaCz\SmsSender; try { $smsSender = new SmsSender('your_smsbrana_cz_login', 'your_smsbrana_cz_password', new \GuzzleHttp\Client(['connection_timeout' => 30])); $smsSender->send( '+420123456789', // phone number 'Your account has been activated, enjoy!' // message text ); } catch (\Granam\SmsBranaCz\Exceptions\Exception $smsException) { \trigger_error('Could not sent SMS: ' . $smsException->getMessage(), E_USER_WARNING); }