Skip to content

Lavarel package for performing sms campaigns using the MTN SMS CLOUD service.

Notifications You must be signed in to change notification settings

mikofb/mtn-sms-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Mikofb MTN SMS CLOUD

Lavarel package for performing sms campaigns using the MTN SMS CLOUD service.

Download

Type the following command in your terminal.

composer require mikofb/mtn-sms-cloud

Register the Service Provider

Update the providers array in config/app.php.

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */


        /*
         * Package Service Providers...
         */

        /*
         * Application Service Providers...
         */
        Mikofb\MtnSmsCloud\MtnSmsCloudServiceProvider::class,
    ],

How to use it

use Mikofb\MtnSmsCloud\Core\MtnSmsCloud;

/**
 * Create a new Instance
 * 
 * @param string $sender_id = The desired sender_id
 * @param string $token = $token associated with $sender_id 
 */
$msa = new MtnSmsCloud($sender_id, $token);

/**
 * Send a new Campaign
 * 
 * @param array $recipients {Ex: ["225xxxxxxxx", "233xxxxxxxx"]}
 * @param string $message
 */
return $msa->newCampaign($recipients, $message);

/**
 * Retrieves on created Campaign
 * 
 * @param string $campaign_id
 * @param string $message
 */
return $msa->getCampaign($campaign_id, $message);

Made with ❤️ by Mikofb.

About

Lavarel package for performing sms campaigns using the MTN SMS CLOUD service.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages