nuwira/smsgw 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

nuwira/smsgw

最新稳定版本:4.2.1

Composer 安装命令:

composer require nuwira/smsgw

包简介

Nuwira SMS API client library

README 文档

README

composer require nuwira/smsgw

Version 3.0 is for old API. For new API, use version 4.0 (latest).

Version 2.0 has been deprecated. Please don't use the version 2.0 or below.

Configuration

Laravel version >= 5.5

Nothing to do. This package use package auto-discovery feature.

Laravel version < 5.5

Open config/app.php add these lines:

'providers' => [
	Nuwira\Smsgw\SmsServiceProvider::class,
];

'aliases' => [
	'SMS' => Nuwira\Smsgw\SmsFacade::class,
];

Publish Config

php artisan vendor:publish

Open your .env file or config/sms.php and add your URL and API Key.

Usage

Auth

SMS::auth($username, $password);

Profile

SMS::profile();

Send Bulk SMS

$bulk = [
	[
		'to' => $number,
		'message' => $message,
	]
];
SMS::bulk($bulk);

Send Single SMS

SMS::send($to_number, $message);

Check Credit

SMS::credit();

Get Received (Inbox)

SMS::received($startDate, $endDate, $search, $page);

Get Detailed Received SMS (Inbox)

SMS::receivedId($id);

Get Sent (Outbox)

SMS::sent($startDate, $endDate, $status, $search, $page);

Get Detailed Sent SMS (Outbox)

SMS::sentId($id);

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-12-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固