PHPackages                             jaebe/jetifier - 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. jaebe/jetifier

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

jaebe/jetifier
==============

PHP Firebase Cloud Messaging library

v1.0.0(8y ago)46201PHP

Since Dec 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/FranQy/Jetifier)[ Packagist](https://packagist.org/packages/jaebe/jetifier)[ Docs](https://github.com/FranQy/Jetifier)[ RSS](/packages/jaebe-jetifier/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Maintainability](https://camo.githubusercontent.com/3ab03a289ffc7a069efa7e83947924d3dbe571db2af8a2a97bcbeb84868f6eb5/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39336661336537336365333134333165363136612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/FranQy/Jetifier/maintainability)[![Build Status](https://camo.githubusercontent.com/103a807977c0e86c2f2fbc4abc953119d0e8e28430bd4411215997b4b29c277a/68747470733a2f2f7472617669732d63692e6f72672f4672616e51792f4a657469666965722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/FranQy/Jetifier)[![Dependency Status](https://camo.githubusercontent.com/dd2670a1ef00baa4b5df2158d9b40a880981257b6b297198dbc754caa00e5584/68747470733a2f2f626574612e67656d6e617369756d2e636f6d2f6261646765732f6769746875622e636f6d2f4672616e51792f4a657469666965722e737667)](https://beta.gemnasium.com/projects/github.com/FranQy/Jetifier)[![Coverage Status](https://camo.githubusercontent.com/4a5f6f4f0d69377e48a3f428687bcccbb4dc7cfa824fc3891bd439d0dd34b2f8/68747470733a2f2f636f6465636f762e696f2f67682f4672616e51792f4a657469666965722f6272616e63682f6d61737465722f6772617068732f62616467652e7376673f6272616e63683d6d6173746572)](https://codecov.io/gh/FranQy/Jetifier/branch/master)

Jetifier
========

[](#jetifier)

Jetifier is simple PHP library to send push notifications and messages via Firebase Cloud Messanging.

- Supports Notifications payload, Data payload and mixed,
- Supports different types of recipients
    - Device token
    - Topic
    - Condition (see: [Docs](https://firebase.google.com/docs/cloud-messaging/http-server-ref#table1))
- Currently only PHP 7.1 and above
- Supports sending messages via curl, file\_get\_contents and open to your implememtations (default curl)
- Simple and fast notification, or customize everything

Usage
=====

[](#usage)

simple send
-----------

[](#simple-send)

```
try {
    $response = (new \Jetifier\Jetifier('API_KEY'))
        ->setTitle('title') // title of notification
        ->setTopic('topic') // topic recipient
        ->send();
}catch (\Jetifier\Exceptions\JetifierException $ex){
    //Exception
}
```

send to device
--------------

[](#send-to-device)

```
$client = new Client('API_KEY');
$message = new Message();
$recipient = new Device('TOKEN');
$notification = new Notification();

$notification->setTitle('title');

$message->setRecipient($recipient)
    ->setNotification($notification)

$client->send($message);
```

send to topic
-------------

[](#send-to-topic)

```
$client = new Client('API_KEY');
$message = new Message();
$recipient = new Topic('topic_name');
$notification = new Notification();

$notification->setTitle('title');

$message->setRecipient($recipient)
    ->setNotification($notification)

$client->send($message);
```

send to topic condition
-----------------------

[](#send-to-topic-condition)

```
$client = new Client('API_KEY');
$message = new Message();

$recipient = new Condition(new Topic('topic_name'));
$recipient->orTopic(new Topic('second_topic');

$notification = new Notification();
$notification->setTitle('title');

$message->setRecipient($recipient)
    ->setNotification($notification)

$client->send($message);
```

nesting conditions
------------------

[](#nesting-conditions)

```
...

$recipient = new Condition(new Topic('topic_name'));
$subCondition = new Condition(new Topic('second_topic'));
$subCondition->orTopic(new Topic('third_topic');
$recipient->andCondition($subCondition);

...
```

change send method
------------------

[](#change-send-method)

```
$client = new Client('API_KEY');
$client->setSender(new \Jetifier\Sender\Post());

...
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3104d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5543361?v=4)[Przemysław Szychowski](/maintainers/FranQy)[@FranQy](https://github.com/FranQy)

---

Top Contributors

[![FranQy](https://avatars.githubusercontent.com/u/5543361?v=4)](https://github.com/FranQy "FranQy (37 commits)")

---

Tags

fcmfcm-notificationsfirebasenotificationsphp-librarypush-notificationspushnotificationfirebaseFCM

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaebe-jetifier/health.svg)

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

PHPackages © 2026

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