PHPackages                             agent/firepush-php - 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. agent/firepush-php

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

agent/firepush-php
==================

A PHP package for send real time push notification in client user agent with firebase

10PHP

Since Feb 4Pushed 4y agoCompare

[ Source](https://github.com/MwSpaceLLC/firepush-php)[ Packagist](https://packagist.org/packages/agent/firepush-php)[ RSS](/packages/agent-firepush-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Push Message [![](https://camo.githubusercontent.com/18234e6fe0afca3df3347d5b8a4e5335156518aded8e9976ee3f0a7a8cbef6cf/68747470733a2f2f7777772e677374617469632e636f6d2f64657672656c2d646576736974652f70726f642f76393361366463663530616435653338653531303334343135646635623461383334356235633836313366373835653438383138616534363864616266373363382f66697265626173652f696d616765732f6c6f636b75702e737667)](https://camo.githubusercontent.com/18234e6fe0afca3df3347d5b8a4e5335156518aded8e9976ee3f0a7a8cbef6cf/68747470733a2f2f7777772e677374617469632e636f6d2f64657672656c2d646576736974652f70726f642f76393361366463663530616435653338653531303334343135646635623461383334356235633836313366373835653438383138616534363864616266373363382f66697265626173652f696d616765732f6c6f636b75702e737667)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#push-message-)

> Small PHP library for send [Cloud Messaging](https://firebase.google.com/docs/cloud-messaging/)

PHP VersionStatusRequirePHP 7.2In DevComposer> Install Library:

` composer require agent/firepush-php`

> Access Google Firebase Console

Firebase gives you functionality like analytics, databases, messaging and crash reporting so you can move quickly and focus on your users. (See [Enable Project](https://console.firebase.google.com/))

> Start Agent Object:

```
$firepush = new Agent\Firepush\Service('AAAAWj6Hc4E:LONG-SERVER-CLOUD-MESSAGE-KEY');

```

💻 The class will connect via api to the project in console.firebase.google.com

> Send Signle Device push notice to client

```
$firepush->to('client_token');

$notify = array(
           'title' => 'FCM Message',
           'body' => 'FCM Message Text',
           'icon' => 'http://myproject.com/icon.png',
           'link' => 'http://myproject.com'
         );

$firepush->notification($notify);

$firepush->send();

//or concatenate:

$firepush->to('client_token')->notification($notify)->send()

```

🚀 The system Send the notification in device set in to()

> Send Multiple Device push notice to client

```

$clients_token = array(
// array of token to send
);

$firepush->to($clients_token);

$notify = array(
           'title' => 'FCM Message',
           'body' => 'FCM Message Text',
           'icon' => 'http://myproject.com/icon.png',
           'link' => 'http://myproject.com'
         );

$firepush->notification($notify);

$firepush->send();

//or concatenate:

$firepush->to($clients_token)->notification($notify)->send()

```

🚀 The system Send the notification in ALL device set in to array()

> Retrive Single/Multiple Messages ID

```

CODE FOR SEND NOTIFICETION

$firepush->send();

// After send:

$firepush->getMessageIds();

```

🚀 The system retrive all message id from call

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ff7aca831dcb2b3ef67529007efd49a04ba4dd9766af2d095770ce93fd87596?d=identicon)[MwSpace LLC](/maintainers/MwSpace%20LLC)

---

Top Contributors

[![MwSpaceLLC](https://avatars.githubusercontent.com/u/29952045?v=4)](https://github.com/MwSpaceLLC "MwSpaceLLC (3 commits)")[![AIvanovitch](https://avatars.githubusercontent.com/u/53446030?v=4)](https://github.com/AIvanovitch "AIvanovitch (1 commits)")

### Embed Badge

![Health badge](/badges/agent-firepush-php/health.svg)

```
[![Health](https://phpackages.com/badges/agent-firepush-php/health.svg)](https://phpackages.com/packages/agent-firepush-php)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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