2017 © Pedro Peláez
 

library courier

A simple wrapper for the free SMS API provider TextBelt.

image

ctrlaltdylan/courier

A simple wrapper for the free SMS API provider TextBelt.

  • Wednesday, October 26, 2016
  • by ctrlaltdylan
  • Repository
  • 5 Watchers
  • 14 Stars
  • 627 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Courier

A simple PHP Wrapper for Textbelt, a free SMS Provider, (*1)

Installation

Courier is a composer package. Install using:, (*2)

composer require ctrlaltdylan/courier

Usage

Example:, (*3)

$courier = new Courier\Courier;

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

You can also chain for multiple messages in one line., (*4)

$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., (*5)

Options

Options are passed into courier via the 2nd argument in the constructor., (*6)

Regions

Courier provides the Canadian and International support given by Textbelt in a few ways., (*7)

Like through the constructor:, (*8)

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

Or with the setRegion method:, (*9)

   $courier->setRegion('intl');

Supported regions:, (*10)

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

The Versions

26/10 2016

dev-master

9999999-dev

A simple wrapper for the free SMS API provider TextBelt.

  Sources   Download

The Requires

 

The Development Requires

by Dylan Pierce

05/10 2016

1.1

1.1.0.0

A simple wrapper for the free SMS API provider TextBelt.

  Sources   Download

The Development Requires

by Dylan Pierce

10/01 2016

1.0

1.0.0.0

A simple wrapper for the free SMS API provider TextBelt.

  Sources   Download

by Dylan Pierce