Library for sending SMS via https://smsmanager.cz/
Information about HTTP Request API https://smsmanager.cz/api/http
composer require jakubenglicky/sms-manager
$msg = new \jakubenglicky\SmsManager\Message\Message();
$msg->setTo(['+420777111222']);
$msg->setBody('Message text');
$client = new \jakubenglicky\SmsManager\Http\Client('api-key');
$client->send($msg);
extensions:
smsmanager: jakubenglicky\SmsManager\DI\SmsManagerExtension
smsmanager:
apiKey: 'sms-manager-api-key'
Use interface IClient
for sending SMS in Nette.
config.local.neon
tracy:
bar:
- jakubenglicky\SmsManager\Diagnostics\Panel(%tempDir%)
services:
smsmanager:
class: jakubenglicky\SmsManager\IClient
factory: jakubenglicky\SmsManager\Diagnostics\DebugClient(%tempDir%)
This panel was inspired by the Nextras Mail Panel