PHPackages                             khrizt/push-notiphications - 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. khrizt/push-notiphications

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

khrizt/push-notiphications
==========================

Push notifications library for Apns and Fcm (or Gcm) for PHP

1.0.1(6y ago)37.4k2Apache-2.0PHPPHP &gt;=7.1

Since Jun 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/khrizt/PushNotiphications)[ Packagist](https://packagist.org/packages/khrizt/push-notiphications)[ Docs](https://github.com/khrizt/PushNotiphications)[ RSS](/packages/khrizt-push-notiphications/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (1)Versions (14)Used By (0)

PushNotiphications
==================

[](#pushnotiphications)

Push notifications library for Apns and Fcm for PHP

Using only cURL as library and Symfony Console for command-line commands this package supports Firebase Cloud Message (if you still use GCM, you can use it too) and APNS with HTTP/2 mode.

Requirements
------------

[](#requirements)

- PHP 7.1+
- PHP Curl and OpenSSL modules
- cURL with HTTP/2 support (check this for Debian/Ubuntu users: )

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

[](#installation)

```
composer require khrizt/push-notiphications

```

Usage example
-------------

[](#usage-example)

FCM

```
use Khrizt\PushNotiphications\Client\Fcm;
use Khrizt\PushNotiphications\Collection\Collection;
use Khrizt\PushNotiphications\Model\Device;
use Khrizt\PushNotiphications\Model\Fcm\Message as FcmMessage;

$fcmMessage = new FcmMessage();
$fcmMessage->setBody($message)
           ->setTitle($title);

$device = new Device($token);
$collection = new Collection();
$collection->append($device);

$client = new Fcm($apiKey);
$responseCollection = $client->send($fcmMessage, $collection);

foreach ($responseCollection as $response) {
    echo 'Status for notification sent to '.$response->getToken().' was '.($response->isOk() ? 'OK' : ' Error. Error message: '.$response->getErrorMessage());
}
```

APNS

```
use Khrizt\PushNotiphications\Client\Apns;
use Khrizt\PushNotiphications\Collection\Collection;
use Khrizt\PushNotiphications\Constants;
use Khrizt\PushNotiphications\Model\Device;
use Khrizt\PushNotiphications\Model\Apns\Message as ApnsMessage;

$apnsMessage = new ApnsMessage();
$apnsMessage->setBody($message)
            ->setTopic($topic);

$device = new Device($token);
$collection = new Collection();
$collection->append($device);

$client = new Apns(Constants::DEVELOPMENT, $certificate, $certificatePassphrase);
$responseCollection = $client->send($apnsMessage, $collection);

foreach ($responseCollection as $response) {
    echo 'Status for notification sent to '.$response->getToken().' was '.($response->isOk() ? 'OK' : '. Error message: '.$response->getErrorMessage());
}
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~114 days

Recently: every ~315 days

Total

12

Last Release

2453d ago

Major Versions

0.4.3 → 1.0.02019-10-30

PHP version history (2 changes)0.1PHP &gt;=7.0

1.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/725227?v=4)[khrizt](/maintainers/khrizt)[@khrizt](https://github.com/khrizt)

---

Top Contributors

[![khrizt](https://avatars.githubusercontent.com/u/725227?v=4)](https://github.com/khrizt "khrizt (3 commits)")[![aporat](https://avatars.githubusercontent.com/u/415576?v=4)](https://github.com/aporat "aporat (1 commits)")

---

Tags

apnsapplefcmgcmgooglephppush-notificationsmessagegooglepushnotificationgcmFCMpusherappleandroidiphoneapnsnotiphications

### Embed Badge

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

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

###  Alternatives

[sly/notification-pusher

Standalone PHP library for easy devices notifications push.

1.2k2.9M16](/packages/sly-notification-pusher)[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40386.4k1](/packages/mcfedr-awspushbundle)

PHPackages © 2026

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