jakubenglicky / sms-manager
PHP SDK for SMS Manager
Installs: 5 741
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: ^7.4 || ^8.0 || ^8.1
- guzzlehttp/guzzle: ^6.3 || ^7.0
- latte/latte: ^2.4
- smartemailing/types: ^1.1
- tracy/tracy: ^2.4
Requires (Dev)
- nette/di: ^2.4
- nette/tester: ^2.0
- phpstan/phpstan: ^1.8
- squizlabs/php_codesniffer: *
README
SMS Manager PHP SDK
Library for sending SMS via https://smsmanager.cz/
Information about HTTP Request API https://smsmanager.cz/api/http
Instalation:
composer require jakubenglicky/sms-manager
Easy using:
$msg = new \jakubenglicky\SmsManager\Message\Message(); $msg->setTo(['+420777111222']); $msg->setBody('Message text'); $client = new \jakubenglicky\SmsManager\Http\Client('api-key'); $client->send($msg);
Nette DI:
extensions: smsmanager: jakubenglicky\SmsManager\DI\SmsManagerExtension smsmanager: apiKey: 'sms-manager-api-key'
Use interface IClient
for sending SMS in Nette.
SMS Tracy Panel
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