ensostudio / sms-smsc
smsc.ru gateway for ensostudio/sms
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ensostudio/sms-smsc
Requires
- ensostudio/sms: ^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2025-09-18 21:17:23 UTC
README
SMS gateway for service smsc.ru
Example
Use GuzzleHttp to send request:
$gateway = new \EnsoStudio\Sms\Gateway\SmscGateway( ['apiKey' => '...'], new \GuzzleHttp\Client(), new \GuzzleHttp\Psr7\HttpFactory() ); $result = $gateway->sendSms('Test message', [\EnsoStudio\Sms\PhoneUtils::sanitizeNumber('+7 905 710-71-71')]); if (!$result->isSuccess()) { // error handler for $result->getErrors() }