beste/firebase-php
beste/firebase-php has 2,439 GitHub stars and 454 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-06 21:48 UTC. Last push 2026-11-02.
Unofficial Firebase Admin SDK for PHP
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original[!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.
[!NOTE] The project moved from the
kreaitto thebesteGitHub Organization in January 2026. The namespace remainsKreait\Firebaseand the package name remainskreait/firebase-php. Please update your remote URL if you have forked or cloned the repository.
Overview
Firebase 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.
Installation
The recommended way to install the Firebase Admin SDK is with Composer. 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 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: https://packagist.org/packages/kreait/laravel-firebase
- Symfony: https://packagist.org/packages/kreait/firebase-bundle
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
License
Firebase Admin PHP SDK is licensed under the MIT License.
Your use of Firebase is governed by the Terms of Service for Firebase Services.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,700 starspublic-apis/public-apis
A collective list of free APIs
496,942 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,203 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,116 stars