From 4a07d97b64912acb5ac7dd747b081044888b814a Mon Sep 17 00:00:00 2001 From: Jan Iwanow Date: Thu, 9 Jun 2016 09:43:19 +1100 Subject: [PATCH] wrote a bit about usage --- readme.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 6551a32..aa03ef4 100644 --- a/readme.md +++ b/readme.md @@ -13,4 +13,24 @@ and copy default configuration by invoking `$ php artisan vendor:publish` comman ## Usage -To be continued... \ No newline at end of file +You can use the service pretty straightforward and inject dependency in your controller: + +```php +smpp->sendOne(1234567890, 'Hi, this SMS was send via SMPP protocol'); + + // Multiple numbers + $this->smpp->sendBulk([1234567890, 0987654321], 'Hi!'); + } +} +``` + +However it is better to abstract your SMS sending service from the SMPP implementation by defining a SMPP-compatible service interface. \ No newline at end of file