PHPackages                             rookiexxk/hyperf-firebase - 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. [Database &amp; ORM](/categories/database)
4. /
5. rookiexxk/hyperf-firebase

ActiveLibrary[Database &amp; ORM](/categories/database)

rookiexxk/hyperf-firebase
=========================

A Hyperf package for the Firebase PHP Admin SDK

v1.0(2y ago)1192MITPHPPHP &gt;=8.1

Since Mar 6Pushed 2y agoCompare

[ Source](https://github.com/rookiexxk/hyperf-firebase)[ Packagist](https://packagist.org/packages/rookiexxk/hyperf-firebase)[ RSS](/packages/rookiexxk-hyperf-firebase/feed)WikiDiscussions main Synced 1mo ago

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

Firebase for Hyperf
===================

[](#firebase-for-hyperf)

A Hyperf package for the [Firebase PHP Admin SDK](https://github.com/kreait/firebase-php).

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

[](#installation)

```
composer require rookiexxk/hyperf-firebase
```

Publish
-------

[](#publish)

```
php bin/hyperf.php vendor:publish fcorz/hyperf-firebase
```

Configuration
-------------

[](#configuration)

### Credentials with JSON files

[](#credentials-with-json-files)

```
FIREBASE_CREDENTIALS=config/certificates/service-account-file.json
```

Usage
-----

[](#usage)

### Facades

[](#facades)

```
use Fcorz\Hyperf\Firebase\Facades\Firebase;

// Return an instance of the Messaging component for the default Firebase project
$defaultMessaging = Firebase::messaging();

// Return an instance of the Auth component for a specific Firebase project
$appMessaging = Firebase::project('app')->messaging();

$anotherAppMessaging = Firebase::project('another-app')->messaging();

// send message
$message = [
    'token' => $deviceToken,
    'notification' => [/* Notification data as array */], // optional
    'data' => [/* data array */], // optional
];

Firebase::messaging()->send($message);
```

### Dependency Injection

[](#dependency-injection)

```
use Fcorz\Hyperf\Firebase\ApplicationProxy;

class yourProjectFirebase extends ApplicationProxy
{
    protected string $name = 'project_name';

}

// send message
class yourClass
{
    public function __construct(yourProjectFirebase $firebase)
    {
        $firebase->messaging()->send($message);
    }
}
```

The future of the Firebase Admin PHP SDK
----------------------------------------

[](#the-future-of-the-firebase-admin-php-sdk)

Please read about the future of the Firebase Admin PHP SDK on the [SDK's GitHub Repository](https://github.com/kreait/firebase-php).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

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

794d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fb3f956dd64ab813329d4d2f8d20e5a1e682c34bd320a33afcf5ecffc089210?d=identicon)[xiaoxie110](/maintainers/xiaoxie110)

---

Top Contributors

[![fcorz](https://avatars.githubusercontent.com/u/25574295?v=4)](https://github.com/fcorz "fcorz (9 commits)")[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (6 commits)")[![xiaoxie110](https://avatars.githubusercontent.com/u/5236520?v=4)](https://github.com/xiaoxie110 "xiaoxie110 (1 commits)")

---

Tags

apisdkdatabasegcmfirebaseFCMhyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rookiexxk-hyperf-firebase/health.svg)

```
[![Health](https://phpackages.com/badges/rookiexxk-hyperf-firebase/health.svg)](https://phpackages.com/packages/rookiexxk-hyperf-firebase)
```

###  Alternatives

[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[morrislaptop/firestore-php

Firestore SDK for PHP without gRPC

6928.6k1](/packages/morrislaptop-firestore-php)

PHPackages © 2026

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