piuszenoph / sms
This package is to send sms to all networks in Ghana through Zenoph SMS GH server
dev-master
2020-06-02 13:25 UTC
This package is auto-updated.
Last update: 2025-06-29 01:42:30 UTC
README
This package is a PHP laravel package meant to send sms to all networks in Ghana through Zenoph SMS GH server
Requirements
- PHP >=7.0
- Laravel >=5.6
Getting started
- composer require piuszenoph/sms
- Integration in Laravel
- Copy the following to config/app.php (if not available)
- "providers": [ "ZenophSmsGh\Sms\SmsServiceProvider::class," ],
- "aliases": { "'ZenophSMSGH' => ZenophSmsGh\Sms\Facades\ZenophSMSGH::class," }
- Copy the following to config/app.php (if not available)
Code Examples
Error codes https://smsonlinegh.com/download.php?file=http-sms-api
use ZenophSMSGH; /***** non personalised ****/ // contact numbers. Each must be separated by a comma $contacts = "0289348779,0581068534,0239597999"; $response = ZenophSMSGH::sendNonPersonalizedSms('username', 'password', 'PIUSGEEK','This is a developed laravel package to send sms',$contacts); ///Note the response the returns are the RESP_CODE@RESP_VAL ////Therefore, you can split and take RESP_CODE or RESP_VAL out for decision /***** other ****/ // contact numbers. Each must be separated by a comma //$contacts = "0289348779,0581068534,0239597999"; ZenophSMSGH::sendFlashSms(string username, string password, string message, string contacts) ZenophSMSGH::getBalance(string username, string password)
Contributing
Contributions to the PiusZenophSMSGH library are welcome.
License
PiusZenophSMSGH is licensed under the MIT License.
Copyright 2020