Download the PHP package fazland/skebby-rest-client without Composer
On this page you can find all versions of the php package fazland/skebby-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fazland/skebby-rest-client
More information about fazland/skebby-rest-client
Files in fazland/skebby-rest-client
Package skebby-rest-client
Short Description Unofficial Skebby Rest Client
License MIT
Informations about the package skebby-rest-client
Skebby Rest Client
Fazland's Skebby Rest Client is an unofficial PHP Rest Client for the italian SMS GatewayProvider Skebby.
Requirements
php
>= 7.4php xml extension
symfony/options-resolver
giggsey/libphonenumber-for-php
>= 8.0
Installation
The suggested installation method is via composer:
Using Skebby Rest Client
It's really simple. First of all, configuration!
Configuration
The mandatory configuration parameters are:
username
password
sender
method
Just create a Client
object passing to the constructor the parameters as an array:
You can also set default values for delivery_start
and validity_period
, thus they can be overridden by the Sms object
Creating SMS:
To create an SMS just follow the example:
Send SMS!
Just use the Client::send(Sms $sms)
method to send sms!
Note:
A single client will send SMS through the method you specified in configuration. If you want to send it through another method, just create a new client.
Events
You can leverage your preferred event system, as long as it implements PSR-14. Just pass your dispatcher as third argument of Client constructor:
Each time an SMS is sent, a \Fazland\SkebbyRestClient\Event\SmsMessageEvent
will be dispatched.
Test
Run
Contributing
Contributions are welcome. Feel free to open a PR or file an issue here on GitHub!
License
Skebby Rest Client is licensed under the MIT License - see the LICENSE file for details
All versions of skebby-rest-client with dependencies
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
giggsey/libphonenumber-for-php Version ^7.0|^8.0
psr/event-dispatcher Version ^1.0
symfony/options-resolver Version ^2.7|^3.0|^4.0|^5.0