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

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

kreait/firebase-php
===================

Firebase Admin SDK

8.2.0(2mo ago)2.4k39.7M—9.3%453[14 issues](https://github.com/beste/firebase-php/issues)[3 PRs](https://github.com/beste/firebase-php/pulls)20MITPHPPHP ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Jan 9Pushed yesterday32 watchersCompare

[ Source](https://github.com/beste/firebase-php)[ Packagist](https://packagist.org/packages/kreait/firebase-php)[ Docs](https://github.com/beste/firebase-php)[ GitHub Sponsors](https://github.com/sponsors/jeromegamez)[ RSS](/packages/kreait-firebase-php/feed)WikiDiscussions 8.x Synced 1mo ago

READMEChangelog (10)Dependencies (56)Versions (246)Used By (20)Security (1)

Firebase Admin SDK for PHP
==========================

[](#firebase-admin-sdk-for-php)

[![Firebase Admin PHP SDK Logo](docs/_static/logo.svg)](docs/_static/logo.svg)[![Current version](https://camo.githubusercontent.com/efc8cdd0a92772181a75b1fac6a572af35641f8b085eef29231cbdbffe5765b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b72656169742f66697265626173652d7068702e7376673f6c6f676f3d636f6d706f736572)](https://packagist.org/packages/kreait/firebase-php)[![Monthly Downloads](https://camo.githubusercontent.com/48a451efc8c828fc9d826750c5e024ddda4d0fade41d47fcbea17366ab8d4bae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6b72656169742f66697265626173652d7068702e737667)](https://packagist.org/packages/kreait/firebase-php/stats)[![Total Downloads](https://camo.githubusercontent.com/bc95958fc8e38d4d57b4a10aa1ee773c2e33c3fbb844f9c9b7c23b0c9116c2ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b72656169742f66697265626173652d7068702e737667)](https://packagist.org/packages/kreait/firebase-php/stats)
[![CI](https://github.com/beste/firebase-php/actions/workflows/ci.yml/badge.svg)](https://github.com/beste/firebase-php/actions/workflows/ci.yml)[![Secure Tests](https://github.com/beste/firebase-php/actions/workflows/secure-tests.yml/badge.svg)](https://github.com/beste/firebase-php/actions/workflows/secure-tests.yml)[![Docs](https://github.com/beste/firebase-php/actions/workflows/docs.yml/badge.svg)](https://github.com/beste/firebase-php/actions/workflows/docs.yml)[![Sponsor](https://camo.githubusercontent.com/1004a94551d1edaf2a6da4d45ba217b79a46eb18dd7dd2d7825add0a2a8ddc4f/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6f676f3d476974487562266c6162656c3d53706f6e736f72266d6573736167653d25453225394425413426636f6c6f723d666636396234)](https://github.com/sponsors/jeromegamez)

Important

**Support the project:** This SDK is downloaded 1M+ times monthly and powers thousands of applications. If it saves you or your team time, please consider [sponsoring its development](https://github.com/sponsors/jeromegamez).

Note

The project moved from the `kreait` to the `beste` GitHub Organization in January 2026. The namespace remains `Kreait\Firebase` and the package name remains `kreait/firebase-php`. Please update your remote URL if you have forked or cloned the repository.

Overview
--------

[](#overview)

[Firebase](https://firebase.google.com/) provides the tools and infrastructure you need to develop your app, grow your user base, and earn money. The Firebase Admin PHP SDK enables access to Firebase services from privileged environments (such as servers or cloud) in PHP.

For more information, visit the [Firebase Admin PHP SDK documentation](https://firebase-php.readthedocs.io/).

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

[](#installation)

The recommended way to install the Firebase Admin SDK is with [Composer](https://getcomposer.org). Composer is a dependency management tool for PHP that allows you to declare the dependencies your project needs and installs them into your project.

```
composer require "kreait/firebase-php:^8.0"
```

Please continue to the [Setup section](docs/setup.rst) to learn more about connecting your application to Firebase.

If you want to use the SDK within a Framework, please follow the installation instructions here:

- **Laravel**:
- **Symfony**:

Quickstart
----------

[](#quickstart)

```
use Kreait\Firebase\Factory;

$factory = (new Factory)
    ->withServiceAccount('/path/to/firebase_credentials.json')
    ->withDatabaseUri('https://my-project-default-rtdb.firebaseio.com');

$auth = $factory->createAuth();
$realtimeDatabase = $factory->createDatabase();
$cloudMessaging = $factory->createMessaging();
$remoteConfig = $factory->createRemoteConfig();
$cloudStorage = $factory->createStorage();
$firestore = $factory->createFirestore();
```

Sponsors
--------

[](#sponsors)

 [![Exitable](docs/_static/sponsors/logo-exitable.png)](https://exitable.nl/) [![JetBrains](docs/_static/sponsors/jetbrains.svg)](https://jb.gg/OpenSourceSupport)

 Thanks to [Exitable](https://exitable.nl/) and [JetBrains](https://www.jetbrains.com/) for supporting this project.

License
-------

[](#license)

Firebase Admin PHP SDK is licensed under the [MIT License](LICENSE).

Your use of Firebase is governed by the [Terms of Service for Firebase Services](https://firebase.google.com/terms/).

###  Health Score

84

—

ExcellentBetter than 100% of packages

Maintenance93

Actively maintained with recent releases

Popularity79

Solid adoption and visibility

Community50

Growing community involvement

Maturity100

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 89.2% 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 ~16 days

Recently: every ~10 days

Total

245

Last Release

74d ago

Major Versions

6.9.4 → 7.0.12023-01-24

6.9.5 → 7.0.22023-01-27

5.26.5 → 7.4.02023-06-18

7.24.0 → 8.0.02026-01-08

7.x-dev → 8.2.02026-03-04

PHP version history (13 changes)0.1PHP &gt;=5.4

0.7PHP &gt;=5.5.0

0.8PHP ^5.5|^7.0

2.0.0-beta1PHP ^7.0

5.0.0PHP ^7.2

5.9.0PHP ^7.2|^8.0

5.13.0PHP ^7.2|~8.0.0

5.20.0PHP ^7.4|^8.0

7.0.0PHP ~8.1.0|~8.2.0

7.9.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

7.14.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

7.22.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

8.0.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8685cf532053a084f1eade7b7da00a512c02676e65f1f1bdec73d4978030a47d?d=identicon)[jeromegamez](/maintainers/jeromegamez)

---

Top Contributors

[![jeromegamez](https://avatars.githubusercontent.com/u/67554?v=4)](https://github.com/jeromegamez "jeromegamez (1559 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (89 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (57 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (7 commits)")[![nhaynes](https://avatars.githubusercontent.com/u/3440002?v=4)](https://github.com/nhaynes "nhaynes (4 commits)")[![slaci](https://avatars.githubusercontent.com/u/543367?v=4)](https://github.com/slaci "slaci (3 commits)")[![ankurk91](https://avatars.githubusercontent.com/u/6111524?v=4)](https://github.com/ankurk91 "ankurk91 (3 commits)")[![janedbal](https://avatars.githubusercontent.com/u/1993453?v=4)](https://github.com/janedbal "janedbal (2 commits)")[![therohitdas](https://avatars.githubusercontent.com/u/43847374?v=4)](https://github.com/therohitdas "therohitdas (2 commits)")[![stanogurnik](https://avatars.githubusercontent.com/u/2771618?v=4)](https://github.com/stanogurnik "stanogurnik (2 commits)")[![rvanlaarhoven](https://avatars.githubusercontent.com/u/1857585?v=4)](https://github.com/rvanlaarhoven "rvanlaarhoven (1 commits)")[![saishsali](https://avatars.githubusercontent.com/u/8968435?v=4)](https://github.com/saishsali "saishsali (1 commits)")[![saurabh-vijayvargiya](https://avatars.githubusercontent.com/u/4012451?v=4)](https://github.com/saurabh-vijayvargiya "saurabh-vijayvargiya (1 commits)")[![Shinhan](https://avatars.githubusercontent.com/u/5931588?v=4)](https://github.com/Shinhan "Shinhan (1 commits)")[![snapshotpl](https://avatars.githubusercontent.com/u/312655?v=4)](https://github.com/snapshotpl "snapshotpl (1 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (1 commits)")[![TimZ99](https://avatars.githubusercontent.com/u/15219858?v=4)](https://github.com/TimZ99 "TimZ99 (1 commits)")[![tomykho](https://avatars.githubusercontent.com/u/1904533?v=4)](https://github.com/tomykho "tomykho (1 commits)")[![Vladnev](https://avatars.githubusercontent.com/u/11948038?v=4)](https://github.com/Vladnev "Vladnev (1 commits)")[![wadewomersley](https://avatars.githubusercontent.com/u/151294?v=4)](https://github.com/wadewomersley "wadewomersley (1 commits)")

---

Tags

cloud-messagingfcmfirebasefirebase-adminfirebase-admin-sdkfirebase-authfirebase-authenticationfirebase-cloud-messagingfirebase-databasefirebase-storagefirestoregoogle-firebasephpapisdkgoogledatabasefirebase

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kreait-firebase-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[saloonphp/saloon

Build beautiful API integrations and SDKs with Saloon

2.4k9.6M468](/packages/saloonphp-saloon)[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[aporat/store-receipt-validator

PHP receipt validator for Apple App Store and Amazon Appstore

6503.9M9](/packages/aporat-store-receipt-validator)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

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

PHPackages © 2026

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