evans-wanguba / onfonmedia-sms
There is no license information available for the latest version (v1.0.0) of this package.
This is a PHP package for Onfon Media Bulk SMS API integration
v1.0.0
2024-10-15 11:30 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^6.0 || ^7.0
Requires (Dev)
- mockery/mockery: ^1.3.1
- phpunit/phpunit: ^9.3
README
This is a PHP package for Onfon Media Bulk SMS API integration. For more information, check out Onfon Media Bulk SMS API Guide.
Installation
Pull in the package through Composer.
composer require evans-wanguba/onfonmedia-sms
Create the following variables in your .env file. Find Sender ID under Dashboard > Sender IDs > All Sender IDs Find API Key under Dashboard > Settings > API SETTINGS tab Find Client ID under Dashboard > Settings > API SETTINGS tab
ONFONMEDIA_SMS_SENDER_ID=SenderID ONFONMEDIA_SMS_API_KEY=APIKey ONFONMEDIA_SMS_CLIENT_ID=ClientID
Supported API Services
- Bulk SMS
Usage
To send bulk SMS request is simple. Just initiate the BulkSMS
and post the transaction:
use EvansWanguba\OnfonmediaSMS\BulkSMS; require "vendor/autoload.php"; /* * Send Bulk SMS */ $message = "This is just a notification"; $bulkSms = [ [ "Number" => "254700000000", "Text" => $message ], [ "Number" => "254700000001", "Text" => $message ] ]; $onfonmediaSms->sendBulkSms($bulkSms);
Support
Email me at ewanguba@gmail.com