承接 mikofb/mtn-sms-cloud 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mikofb/mtn-sms-cloud

最新稳定版本:1.0

Composer 安装命令:

composer require mikofb/mtn-sms-cloud

包简介

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

README 文档

README

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.

统计信息

  • 总下载量: 131
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-30