Logo Lanfrica

geekpius/piuszenoph-sms

Domaine:

digital infrastructure

Type de record:

software
Créateur:
gee
Hôte:
This package is to send sms to all networks in Ghana through Zenoph SMS GH server # piuszenoph-sms 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," } ## Code Examples Error codes smsonlinegh.com ```php 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