Download the PHP package hosannahighertech/beem-sms-api without Composer
On this page you can find all versions of the php package hosannahighertech/beem-sms-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hosannahighertech/beem-sms-api
More information about hosannahighertech/beem-sms-api
Files in hosannahighertech/beem-sms-api
Package beem-sms-api
Short Description Library to work with BEEM SMS API, see beem.africa
License Apache-2.0
Homepage https://github.com/hosannahighertech
Informations about the package beem-sms-api
beem-sms-api
Send SMS with easy using BEEM
Installation
You must be using composer to be able to use this library. If composer 1.x is installed, make sure you upgrade to 2.0 to avoid installation problems. Check version with composer -V
once setup run the command at the root of your project to install the library
composer require hosannahighertech/beem-sms-api
Usage
To send SMS just create instance of the client passing Key and Secret
Then create new message. First Parameter is Sender ID or Mobile number of the sender. Next parameter is text of the message.
Next add Receivers number. First parameter is your special ID (see BEEM Docs) and the other one is receiver's mobile.
Note that recipient ID and country code are optionals. You can get list of internationalized list of recipients and their IDs from getRecipients()
method of message object.
Finally send the message. If failed, the method getLastError()
should contain the error message
Contributing
Contribute by opening issues when you encounter a problem or when asking for feature. We also receive PR for enhancement or bug fixes.