axima / sms-gate
PHP implementation of sms.sluzba.cz API.
Installs: 6 744
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- guzzlehttp/guzzle: ~5.3.0||^6.0
Requires (Dev)
- nette/tester: ^1.7
This package is not auto-updated.
Last update: 2024-12-14 00:27:32 UTC
README
PHP implementation of sms.sluzba.cz API.
Installation
composer require axima/sms-gate
Usage
use Axima\SmsGate\Client;
use GuzzleHttp\Client as GuzzleClient;
$client = new Client(new GuzzleClient, 'login', 'password');
$client->sendSms(123456789, 'Hello there!');
To request confirmation, you can also provide third parameter to method sendSms
, like this:
$client->sendSms(123456789, 'Hello there!', TRUE);
Setting it to FALSE
disables confirmation for this SMS. Setting it to NULL
will use user's default settings.
4th parameter can be used to schedule sending of SMS.
$client->sendSms(123456789, 'Hello there!', TRUE, new DateTime('+10 minutes'));
Bug reports, feature requests
Please use GitHub issue tracker / pull requests.