epmnzava/nextsms

PHP package for easy integration with NextSms Bulk SMS Solution

1.0.2 2023-10-22 14:02 UTC

This package is auto-updated.

Last update: 2024-10-22 16:34:51 UTC


README

Latest Version on Packagist Total Downloads

Installation

You can install the package via composer:

composer require epmnzava/nextsms

Usage

use Epmnzava\Nextsms;

public function send_sms_to_one_destination(){

    $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
    $response=$sms->sendSms("hellow world", "STOREWID", "255679079774");
}

public function send_sms_to_multiple_destination(){

    $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");

    $response=$sms->send_sms_mutipledestination("hellow world", "STOREWID", ["255679079774","255768172016"]);
}

//getting all delivery reports

public function getAllDeliveryReports(){
    $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");
    $response=$sms->getAllDeliveryReports();
}

//getting single message delivery report


public function getSingleMessageDeliveryReport(){
    $messageId="28089492984101631440";
    $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");

        $reponse=$sms->getMessageDeliveryReport($messageId);

}


//get your  sms balance

public function getBalance(){
    $sms=new Nextsms("https://messaging-service.co.tz", "Storewid", "3434");

        $reponse=$sms->getSmsBalance();
}

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.