Laravel 5 package for Ebulksms (Nigerian bulk sms platform)
Details
Laravel Ebulksms is a Laravel 5 package to help sending sms' from your application a breeze. Ebulksms is a Nigerian company that provides mass sms service. This package works around their json api to help developers easily send sms' with very minimal configuration and also with a very intuitive api. The api looks like this;
$ebulk->composeMessage('Hello Utopian!')
->addRecipients('070********')
->send();
If you want to send a flash message instead, try
$ebulk->composeMessage('Hello Utopian!')
->addRecipients('070********')
->flash();
What if you want to set a sender name for your sms? just do this;
$ebulk->fromSender('Utopian Bot')
->composeMessage('Hello Utopian!')
->addRecipients('070********')
->send();
Please Note: The sender name can not be longer than 11
characters.
If you want to check your SMS Credit Balance, we have a convenience method
$ebulk->getBalance();
Examples
Create a route endpoint from your
routes.php
file
Simply inject the
therealsmat\Ebulksms\EbulkSMS
class into your method and use as seen in the image below;
You must have an Ebulksms account before using this package. Check the github readme for more information of how to create a free ebulksms account.
Also, you will need to generate an api key before using this package.
Check the github readme for more usage information.
Github Link:
https://github.com/therealSMAT/laravel-ebulksms
Components
Not Applicable to this post. The entire package was built by me
Related issues
Not Applicable
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @therealsmat I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x