承接 epmnzava/bongolivesms-laravel 相关项目开发

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

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

epmnzava/bongolivesms-laravel

最新稳定版本:1.9

Composer 安装命令:

composer require epmnzava/bongolivesms-laravel

包简介

A laravel package for intergration with bongolive bulk sms online api

README 文档

README

Latest Version on Packagist Total Downloads Emmanuel Mnzava

Installation

  • Laravel Version: => 8.0
  • PHP Version: => 8.0 You can install the package via composer:
composer require epmnzava/bongolivesms-laravel

Update your config (for Laravel 5.4 and below)

Add the service provider to the providers array in config/app.php:

Epmnzava\BongolivesmsLaravel\BongolivesmsLaravelServiceProvider::class,

Add the facade to the aliases array in config/app.php:

'Bongolive'=>Epmnzava\BongolivesmsLaravel\BongolivesmsLaravelFacade::class,

Publish the package configuration (for Laravel 5.4 and below)

Publish the configuration file and migrations by running the provided console command:

php artisan vendor:publish --provider="Epmnzava\BongolivesmsLaravel\BongolivesmsLaravelServiceProvider"

Environmental Variables

BEEM_LIVE_KEY your provided beemafrica api key

BEEM_LIVE_SECRET your provided beemafrica secret

BEEM_SENDERID your provided beemafrica senderid

Usage

Sending to one msisdn at a time 

<?php
use Bongolive;

class DashboardController extends Controller
{
    //


    public function runSms(){

//assuming $recipient_msisdn is your receipient number 
//we need to change it from 0XXXX to 255XXX

if(substr($recipient_msisdn, 0, 1)==0){
  $msisdn = ltrim($recipient_msisdn, "0");

  $recipient_msisdn="255"."".$msisdn;


}else{}
        $response=Bongolive::send__single_recipient($source_addr,$message,$recipient_msisdn);

    }


Sending multiple msisdn at one by passing an array of numbers

<?php
use Bongolive;

class DashboardController extends Controller
{
    //


    public function runSms(){

//assuming $recipient_msisdn is your receipient number 
//we need to change it from 0XXXX to 255XXX

 
 $recipient_array=["255679079774","2556789909"];
        $response=Bongolive::send__multiple_recipient($source_addr,$message,$recipient_array);

    }

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.

统计信息

  • 总下载量: 1.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固