PHPackages                             maatify/routee - 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. [API Development](/categories/api)
4. /
5. maatify/routee

ActiveLibrary[API Development](/categories/api)

maatify/routee
==============

PHP library for Routee API handler, known by our team

5.0.1(9mo ago)073proprietaryPHP

Since Jul 10Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Maatify/RouteeSms)[ Packagist](https://packagist.org/packages/maatify/routee)[ Docs](https://github.com/Maatify/)[ RSS](/packages/maatify-routee/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

[![Current version](https://camo.githubusercontent.com/7fad45bc205849747aa7ae6a8c34006666c26be889451a7dea78ea9f84de794e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6161746966792f726f75746565)](https://packagist.org/packages/maatify/routee)[![Packagist PHP Version Support](https://camo.githubusercontent.com/902b8bee63df0112c2900bf6b54d6fbded59127bf445330d19b2b5f2cdb6eacc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6d6161746966792f726f75746565)](https://packagist.org/packages/maatify/routee)[![Monthly Downloads](https://camo.githubusercontent.com/31b6209faac44c210d264da3a6c7426223ade633446f9e085123480ae4ab1980/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6d6161746966792f726f75746565)](https://packagist.org/packages/maatify/routee/stats)[![Total Downloads](https://camo.githubusercontent.com/55ebcac1642569508315da1ddb66f3e1cb345c5a733027d0fa7fa41499c59bff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6161746966792f726f75746565)](https://packagist.org/packages/maatify/routee/stats)[![Stars](https://camo.githubusercontent.com/8da392e96e76482fe3adfe2f3cb58f6dde8cd7bf9eb2da5069e400d6cb5bb518/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d6161746966792f726f75746565)](https://github.com/maatify/RouteeSms/stargazers)

Installation
============

[](#installation)

```
composer require maatify/routee
```

Usage
=====

[](#usage)

### Instance

[](#instance)

```
use Maatify\RouteeSms\Routee;

require_once __DIR__ . '/vendor/autoload.php';

$routee = new Routee(__API_KEY__, __SENDER_NAME__); // Routee instance
```

### Check Balance

[](#check-balance)

```
$result = $routee->CheckBalance();

print_r($result);
```

#### Response Example :

[](#response-example-)

##### Success Example

[](#success-example)

> ```
>   Array
>   (
>        [currency] => Array
>            (
>                [code] => USD
>                [name] => US Dollar
>                [sign] => $
>            )
>
>        [balance] => 400.83762
>        [success] => 1
>   )
>
> ```

##### Error Example

[](#error-example)

> ```
>    (
>        [timestamp] => 2024-07-10T03:39:48.787+0000
>        [status] => 401
>        [error] => Unauthorized
>        [message] => Bad credentials
>        [path] => /accounts/me/balance
>        [success] => 1
>    )
>
> ```

### Send SMS Message

[](#send-sms-message)

```
$result = $routee->SendSms(__PHONE_NUMBER__, __SMS_MESSAGE__);

print_r($result);
```

#### Response Example :

[](#response-example--1)

##### Success Example

[](#success-example-1)

> ```
>   Array
>   (
>        [trackingId] => 66fb6987-6be1-4e92-b6d5-ca3ca5227d23
>        [status] => Queued
>        [createdAt] => 2024-07-10T03:32:32.916Z
>        [from] => Maatify.dev
>        [to] => __PHONE_NUMBER__
>        [body] => Welcome to Maatify.dev
>        [bodyAnalysis] => Array
>            (
>                [parts] => 1
>                [unicode] =>
>                [characters] => 22
>            )
>
>        [flash] =>
>        [callback] => Array
>            (
>                [url] => {{if your api is set}}
>                [strategy] => OnChange
>            )
>
>        [success] => 1
>    )
>
> ```

##### Error Example

[](#error-example-1)

> ```
>    (
>        [timestamp] => 2024-07-10T03:39:48.787+0000
>        [status] => 401
>        [error] => Unauthorized
>        [message] => Bad credentials
>        [path] => /sms
>        [success] => 1
>    )
>
> ```

### Get your account transactions

[](#get-your-account-transactions)

```
$time_from = date('Y-m-d\TH:i\Z', strtotime('2023-01-01 00:00'));
$time_to = date('Y-m-d\TH:i\Z', strtotime('2024-07-31 23:59:59'));
$result = $routee->Transactions($time_from, $time_to);

print_r($result);
```

#### Response Example :

[](#response-example--2)

##### Success Example

[](#success-example-2)

> ```
>   Array
>   (
>        [content] => Array
>            (
>                [0] => Array
>                    (
>                        [id] => 41e667b1-f9f1-4ed4-8ff3-a8032309ff3e
>                        [source] => 517879******7503
>                        [amount] => 35
>                        [status] => Completed
>                        [balanceBefore] => 0.054
>                        [balanceAfter] => 0.054
>                        [date] => 2023-05-27T10:14:26Z
>                        [actions] => Array
>                            (
>                                [0] => Array
>                                    (
>                                        [id] => e9bc07a1-dea1-4561-a020-52997904e18a
>                                        [type] => Status Changed
>                                        [amount] => 35
>                                        [date] => 2023-05-27T10:15:03Z
>                                        [balanceBefore] => 0.054
>                                        [balanceAfter] => 35.054
>                                        [status] => Completed
>                                    )
>
>                           )
>
>                   )
>
>               [1] => Array
>                   (
>                       [id] => 0af024fa-8f1a-4ca8-b837-f99001a9a906
>                       [source] => 559444******1710
>                       [amount] => 20
>                       [status] => Completed
>                       [balanceBefore] => 0.088
>                       [balanceAfter] => 0.088
>                       [date] => 2023-03-25T00:22:50Z
>                       [actions] => Array
>                           (
>                               [0] => Array
>                                   (
>                                       [id] => 70a6098e-7ddd-4496-a105-5e80af4f6883
>                                       [type] => Status Changed
>                                       [amount] => 20
>                                       [date] => 2023-03-25T00:23:04Z
>                                       [balanceBefore] => 0.088
>                                       [balanceAfter] => 20.088
>                                       [status] => Completed
>                                   )
>
>                           )
>
>                   )
>
>           )
>
>       [last] => 1
>       [totalElements] => 2
>       [totalPages] => 1
>       [numberOfElements] => 2
>       [first] => 1
>       [size] => 20
>       [number] => 0
>       [success] => 1
>   )
>
> ```

### Send SMS Message WIth Callback

[](#send-sms-message-with-callback)

### Instance

[](#instance-1)

```
use Maatify\RouteeSms\Routee;

require_once __DIR__ . '/vendor/autoload.php';

$routee = new Routee(__API_KEY__, __SENDER_NAME__, __YOUR_CALLBACK_URL__); // SmsEG instance
```

#### Send SMS Message WIth Callback On Change

[](#send-sms-message-with-callback-on-change)

```
$result = $routee->SendSmsWithCallBackOnChange(__PHONE_NUMBER__, __SMS_MESSAGE__);

print_r($result);
```

#### Send SMS Message WIth Callback On Completion(

[](#send-sms-message-with-callback-on-completion)

```
$result = $routee->SendSmsWithCallBackOnCompletion(__PHONE_NUMBER__, __SMS_MESSAGE__);

print_r($result);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance58

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~198 days

Total

3

Last Release

277d ago

Major Versions

1.0.3 → 5.0.12025-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a885a0810f2762586520ab284c9019aaf0b650b53cdf2a6c13ea10931bb7795?d=identicon)[Maatify](/maintainers/Maatify)

---

Top Contributors

[![megyptm](https://avatars.githubusercontent.com/u/33574895?v=4)](https://github.com/megyptm "megyptm (5 commits)")[![Maatify](https://avatars.githubusercontent.com/u/130119162?v=4)](https://github.com/Maatify "Maatify (1 commits)")

---

Tags

phpapismsproviderhandlerRouteeroutee.net

### Embed Badge

![Health badge](/badges/maatify-routee/health.svg)

```
[![Health](https://phpackages.com/badges/maatify-routee/health.svg)](https://phpackages.com/packages/maatify-routee)
```

###  Alternatives

[unicodeveloper/jusibe-php-lib

Jusibe PHP Library

3417.4k1](/packages/unicodeveloper-jusibe-php-lib)[lakshmaji/plivo

Send SMS using Plivo Cloud API

2016.8k](/packages/lakshmaji-plivo)[lakshmajim/plivo

Send SMS using Plivo Cloud API

205.7k](/packages/lakshmajim-plivo)[okolaa/termiiphp

Termii Rest API php library

112.4k](/packages/okolaa-termiiphp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
