PHPackages                             masasron/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. [API Development](/categories/api)
4. /
5. masasron/firebase-php

ActiveLibrary[API Development](/categories/api)

masasron/firebase-php
=====================

Firebase PHP Client

41156PHP

Since Sep 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/masasron/firebase-php)[ Packagist](https://packagist.org/packages/masasron/firebase-php)[ RSS](/packages/masasron-firebase-php/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Firebase PHP Client
===================

[](#firebase-php-client)

### Installation

[](#installation)

The recommended way to install Firebase is through [Composer](http://getcomposer.org).

```
composer require masasron/firebase-php dev-master
```

### Quick usage example

[](#quick-usage-example)

```
$firebase = new \Firebase\Client('https://test123.firebaseio.com');

$firebase->set([ 'messages' => [] ]);

$messagesRef = $firebase->child('/messages');

$messagesRef->push('Foo');
$messagesRef->push('Bar');
$messagesRef->push('Hello World');
```

### Authentication

[](#authentication)

```
$token = 'TOKEN_IN_HERE';

$firebase = new \Firebase\Client('https://test123.firebaseio.com',$token);

$firebase->child('/users/ron/email').set('ron@test.com');
```

### Other

[](#other)

```
// Set
$firebase->child('/users/ron')->set([ 'id' => 1,'name' => 'Ron' ]);

// Update
$firebase->child('/users/ron/name')->set('Ronald');

// Push
$likes = $firebase->child('/users/ron/likes');
$likes->push('PHP');
$likes->push('Laravel');
$likes->push('Firebase');

// Get
$user = $firebase->child('/users/ron')->get();

// Delete
$firebase->child('/users/ron')->delete();
```

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://avatars.githubusercontent.com/u/7352073?v=4)[Ron Masas](/maintainers/masasron)[@masasron](https://github.com/masasron)

---

Top Contributors

[![masasron](https://avatars.githubusercontent.com/u/7352073?v=4)](https://github.com/masasron "masasron (3 commits)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)

PHPackages © 2026

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