PHPackages                             ctrlaltdylan/courier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. ctrlaltdylan/courier

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ctrlaltdylan/courier
====================

A simple wrapper for the free SMS API provider TextBelt.

1.1(9y ago)253.4k↑33.3%6[2 issues](https://github.com/ctrlaltdylan/courier/issues)PHP

Since Jan 10Pushed 9y ago6 watchersCompare

[ Source](https://github.com/ctrlaltdylan/courier)[ Packagist](https://packagist.org/packages/ctrlaltdylan/courier)[ RSS](/packages/ctrlaltdylan-courier/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Courier
=======

[](#courier)

A simple PHP Wrapper for Textbelt, a free SMS Provider

Installation
------------

[](#installation)

Courier is a composer package. Install using:

```
composer require ctrlaltdylan/courier

```

Usage
-----

[](#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)

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

#### Regions

[](#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
