定制 racoonsoftware/netgsm 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

racoonsoftware/netgsm

Composer 安装命令:

composer require racoonsoftware/netgsm

包简介

Laravel 5.1 Net Gsm Sms service package

README 文档

README

Gitter Latest Stable Version Total Downloads Latest Unstable Version License

Installation

You should install this package through Composer.

Edit your project's composer.json file to require raccoonsoftware/netgsm.

"require": {
    "raccoonsoftware/netgsm": "*"
},

Next, update Composer from the Terminal: composer update

Once this operation completes, the final step is to add the service provider. Open app/config/app.php, and add a new item to the providers array.

'RaccoonSoftware\NetGsm\NetGsmServiceProvider::class',

And add a new item to the aliases array.

'NetGsm' => 'RaccoonSoftware\NetGsm\Facade\NetGsm::class',

Give this command
php artisan vendor:publish

and open config/netgsm.php file and fill necesary information.

Usage

Option 1

use RaccoonSoftware\NetGsm\NetGsm;

Route::get('/', function () {
    
    $sms = new NetGsm();
    
    return $sms->setGsmNumber("5xxxxxxxxxx")->setContent("Hello World!")->send();
});

Option 2

use RaccoonSoftware\NetGsm\NetGsm;

Route::get('/', function () {
    
    $sms = new NetGsm();
    $sms->setGsmNumber("5xxxxxxxxx");
    $sms->setContent("Hello New World");
    
    return $sms->send();
});

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD
  • 更新时间: 2015-11-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固