PHPackages                             mhamlet/phpush - 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. mhamlet/phpush

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

mhamlet/phpush
==============

PHP Package to send push notifications

v1.3(10y ago)026MIT LicensePHP

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mhamlet/PHPush)[ Packagist](https://packagist.org/packages/mhamlet/phpush)[ RSS](/packages/mhamlet-phpush/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)DependenciesVersions (5)Used By (0)

PHPush
======

[](#phpush)

[![Latest Version](https://camo.githubusercontent.com/865aa5e8ad658f01ce560c79bbff09b6a4ea4ca86e8226a5d64acff6f08dc68c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6d68616d6c65742f5048507573682e7376673f7374796c653d666c61742d737175617265)](https://github.com/mhamlet/PHPush/releases)[![Build Status](https://camo.githubusercontent.com/9159ea0395c76578707baf7767bf1329a203235186c5ea0e1b2dc63f4f73d3a3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d68616d6c65742f5048507573682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/mhamlet/PHPush)[![Quality Score](https://camo.githubusercontent.com/11151199d9c490ed626cf5622bdd5cdc9557c7f92164d00daef94d62848913f0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d68616d6c65742f5048507573682e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mhamlet/PHPush)[![Total Downloads](https://camo.githubusercontent.com/4675aede0b108f720c03ffb33b2935fcf6dd38ebd42e547ea3d497ed1fc8b1aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d68616d6c65742f5048507573682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mhamlet/PHPush)

PHPush is a PHP package that provide a simple API to send push notifications to foreign platforms.

Currently, we support 3 platforms - Android, iOS, and Google Chrome.

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

[](#installation)

Add the package in your composer.json by executing the following command:

```
composer require mhamlet/phpush
```

Example
-------

[](#example)

The following examples demonstrate how to send Push notifications with text "Hello, World!" to 2 devices in different platforms.

```
// Include composer autoloader
require_once 'vendor/autoload.php';

use PHPush\PHPush;

// Setting environment
PHPush::Environment(PHPush::ENVIRONMENT_PRODUCTION);

// Adding Android key
PHPush::Provider(\PHPush\Provider::PROVIDER_ANDROID)->setAccessKey('test');

// Adding iOS certificate
PHPush::Provider(\PHPush\Provider::PROVIDER_IOS)->setCertificate('ck.pem');

// Creating new queue
$queue = PHPush::Queue();

// Adding some devices
$queue->add(new \PHPush\providers\android\Device('android_registration_id'));
$queue->add(new \PHPush\providers\chrome\Device('chrome_registration_id'));
$queue->add(new \PHPush\providers\ios\Device('ios_device_token'));

// Setting message
$queue->message('Hello World!');

// Send message. You can provide custom fields to this method.
// Also you can pass sound and passphrase with this custom fields
$queue->send(array(
    'custom' => 'field',
    'sound' => 'popup.aif',
    'passphase' => 'phpush',
));

// Creating another queue
$another_queue = PHPush::Queue();

// Adding only one device
$another_queue->add(new \PHPush\providers\ios\Device('another_or_the_same_ios_device_token'));

// Setting message
$another_queue->message('Hello World! I\'m second queue!');

// This will not open a connection to APNS server again.
// It will use the old connection
$another_queue->send();
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~253 days

Total

4

Last Release

3650d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e93f8ab1bba0d8bf35f68f4425e3e7367d50afeb51317aee0ccf1416924d834?d=identicon)[mhamlet](/maintainers/mhamlet)

---

Top Contributors

[![mhamlet](https://avatars.githubusercontent.com/u/1281731?v=4)](https://github.com/mhamlet "mhamlet (45 commits)")

---

Tags

notificationsphppush-notifications

### Embed Badge

![Health badge](/badges/mhamlet-phpush/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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