定制 ctrlaltdylan/courier 二次开发

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

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

ctrlaltdylan/courier

最新稳定版本:1.1

Composer 安装命令:

composer require ctrlaltdylan/courier

包简介

A simple wrapper for the free SMS API provider TextBelt.

README 文档

README

A simple PHP Wrapper for Textbelt, a free SMS Provider

Installation

Courier is a composer package. Install using:

composer require ctrlaltdylan/courier

Usage

Example:

$courier = new Courier\Courier;

$courier->setRecipient('867530999')->setBody('Hello World')->send();

You can also chain for multiple messages in one line.

$body = "One hot body";

$courier->setRecipient('1112223333')->setBody($body)->send()
	new()->setRecipient('4445556666')->setBody($body)->send()
;

Note: Be sure to use the new() function before starting another message.

Options

Options are passed into courier via the 2nd argument in the constructor.

Regions

Courier provides the Canadian and International support given by Textbelt in a few ways.

Like through the constructor:

    $canadianCourier = new Courier\Courier(['body' => 'I <3 Vancouver'], ['region' => 'canada']);

Or with the setRegion method:

   $courier->setRegion('intl');

Supported regions:

  • us (default)
  • canada
  • intl (short for 'international')

统计信息

  • 总下载量: 3.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 25
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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