PHPackages                             max13/push - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. max13/push

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

max13/push
==========

Push message manager for PHP. Can even manage SMS.

0.1-alpha(12y ago)017CC-BY-NC-SA-3.0PHPPHP &gt;=5.3.0

Since Apr 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Max13/MXPush)[ Packagist](https://packagist.org/packages/max13/push)[ Docs](http://github.com/Max13/MXPush)[ RSS](/packages/max13-push/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

MXPush Service
==============

[](#mxpush-service)

Required
--------

[](#required)

- PHP &gt;= `5.3`

How to download
---------------

[](#how-to-download)

Choose as needed:

- Install with composer (`"max13/push": "dev-master"`)
- Clone the [github repository](https://github.com/Max13/MXRequestManager-PHP) with `git clone  []`
- Download the zip file on [github](https://github.com/Max13/MXRequestManager-PHP) directly
- Try to find another one by yourself :/

Then place it where you want (readable location, in order to load it).

How to use
----------

[](#how-to-use)

Captain Obvious is so Obvious, that this is truly the most interesting part of the README.

You can find a Doxygen doc somewhere, you'll just see how to basically use the library.

First of all, let's take a simple example. You have your APIs (`api.awsome-guy.com`) and you want to retrieve a member list from your **users** resource, with a **GET**.

JSON string would be:

```
{
	users:[
		{
			"id": 4,
			"username": "foo"
		}, {
			"id": 12,
			"username": "bar"
		}
	]
}

```

```

```

From there, you must verify `$res` because it can be 3 types (so check the type too with `===`)

```
// MXRequestManager error,
// errno are in the top of the lib file
if ($res === FALSE)
	die('Client error: '.$mx->errno());
if ($res === TRUE) // No JSON, may be a PHP Error
	die('Parse error: '.$mx->response('body'));

```

And after that and your own checks (for example, if the property `errors` is present), you can safely use $res as a `stdClass`:

```

```

And this example will output:

```
User n0: 4
4 / foo
12 / bar

```

That's it. You can already use `MXRequestManager` !

How to check the entire response ?
----------------------------------

[](#how-to-check-the-entire-response-)

This is simple, you can call:

```

```

How to check the headers ?
--------------------------

[](#how-to-check-the-headers-)

`MXRequestManager` is intelligent and smart enough to allow you to check the headers simply.

Here is an example header:

```
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 04 Feb 2013 21:49:22 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.21
Content-Encoding: gzip
Vary: Accept-Encoding

```

When processed, every line are split and stored in an array, accessible by a key, corresponding to the part before the semicolon (`:`) of each line, except for the first line which has for key `Status` and the `HTTP code` accessible with in `Code`.

There is an internal multi-dimentional array which contains 2 root keys: `headers` and `body`:

- `headers` contains an associative array of the header's values
- `body` is the body returned as a `string`

Nothing better than an example:

```

```

Additional notes
----------------

[](#additional-notes)

A sort of manual will come soon...

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4427d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/531249?v=4)[Adnan RIHAN](/maintainers/Max13)[@Max13](https://github.com/Max13)

---

Top Contributors

[![Max13](https://avatars.githubusercontent.com/u/531249?v=4)](https://github.com/Max13 "Max13 (2 commits)")

---

Tags

laravelpushsmsandroidios

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/max13-push/health.svg)

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[leonardoteixeira/pushover

A simple PHP library for the Pushover service

1827.7k3](/packages/leonardoteixeira-pushover)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)

PHPackages © 2026

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