# Firebase Admin SDK for PHP

Unofficial Firebase Admin SDK for PHP

Repository: https://github.com/beste/firebase-php
Canonical: https://ross.abutalabs.com/products/firebase-admin-sdk-for-php
Homepage: https://firebase-php.readthedocs.io/
Language: PHP
License: MIT
License Family: permissive
Topics: firebase, php, firebase-admin, firebase-admin-sdk, google-firebase, firestore, cloud-messaging, firebase-auth, firebase-authentication, firebase-database, firebase-cloud-messaging, firebase-storage, fcm
Last push: 2026-08-26T11:33:38+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 4256, "days_push": 7, "days_rel": 28, "gap_med": 29.5, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2435, forks 454 (observed 2026-08-28T04:06:51.395745+00:00)

## What it is
An unofficial Firebase Admin SDK for PHP that provides access to Firebase services like Authentication, Realtime Database, Firestore, and Cloud Messaging from privileged server environments. It integrates with Composer-based PHP projects and offers dedicated Laravel and Symfony framework integrations.

## Use cases
- send push notifications via firebase cloud messaging from php
- verify firebase auth tokens on a php backend
- manage firebase users from a server
- read and write to firebase realtime database in php
- integrate firebase with laravel
- access firestore from a php application

## When to choose
- you need to interact with Firebase services from a PHP backend or CLI
- you want to send FCM push notifications from PHP
- you need Firebase Authentication token verification in a PHP API
- you use Laravel or Symfony and want a ready-made Firebase integration

## When to avoid
- you need an officially supported Google SDK with guaranteed support
- your stack is not PHP
- you only need client-side Firebase features in a browser or mobile app

## Facets
- artifact type: library
- maturity: active
- function: sdk, auth, http-client, database
- domain: developer-tools, backend, apis, web-development
- platform: php
- tags: firebase, firebase-admin-sdk, firestore, cloud-messaging, fcm, push-notifications, laravel, symfony

## Member repositories
- beste/firebase-php (main) score 98
- beste/laravel-firebase (plugin) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:51.395745+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:31:01.698351+00:00, confidence not recorded.
  - readme: https://github.com/beste/firebase-php (fetched 2026-08-28T04:06:51.395745+00:00, sha 956dac60ca9e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
