PHPackages                             safestudio/firebase-laravel - 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. [Framework](/categories/framework)
4. /
5. safestudio/firebase-laravel

AbandonedArchivedLibrary[Framework](/categories/framework)

safestudio/firebase-laravel
===========================

Firebase REST API easy wrapper for Laravel and Lumen

1.0.8(8y ago)269.6k↓67.9%6MITPHPPHP &gt;=7.1

Since May 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SafeStudio/firebase-laravel)[ Packagist](https://packagist.org/packages/safestudio/firebase-laravel)[ RSS](/packages/safestudio-firebase-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (5)Versions (4)Used By (0)

Firebase easy REST API wrapper for Laravel and Lumen
====================================================

[](#firebase-easy-rest-api-wrapper-for-laravel-and-lumen)

[![Build Status](https://camo.githubusercontent.com/81bbd9d2f19000481719abfd6880b571ff2cd9be3248cbaaf4b60630c7256ff0/68747470733a2f2f7472617669732d63692e6f72672f7361666573747564696f2f66697265626173652d6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/safestudio/firebase-laravel)[![Latest Stable Version](https://camo.githubusercontent.com/b1459044b3301e456fc6779c61ee5ce80424dddeb5b0f2746fc876f3b33c8bdc/68747470733a2f2f706f7365722e707567782e6f72672f7361666573747564696f2f66697265626173652d6c61726176656c2f762f737461626c65)](https://packagist.org/packages/safestudio/firebase-laravel)[![Total Downloads](https://camo.githubusercontent.com/1dbe84620edbf4b028537d115347e1854f4785bf5813bb8a773acccbf281d547/68747470733a2f2f706f7365722e707567782e6f72672f7361666573747564696f2f66697265626173652d6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/safestudio/firebase-laravel)[![Latest Unstable Version](https://camo.githubusercontent.com/f290672477e50dc82983cee2ed0d638430ac6ffd845e43ffe4d28e89f1e0cd5a/68747470733a2f2f706f7365722e707567782e6f72672f7361666573747564696f2f66697265626173652d6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/safestudio/firebase-laravel)[![License](https://camo.githubusercontent.com/10af4d441ee9b97a7dcc72b3762acd0df6d6cfcd05e4f29064d0b01bf555d222/68747470733a2f2f706f7365722e707567782e6f72672f7361666573747564696f2f66697265626173652d6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/safestudio/firebase-laravel)

### Installation

[](#installation)

#### Laravel

[](#laravel)

```
composer require safestudio/firebase-laravel
```

After installing composer package, add the ServiceProvider to the providers array in `config/app.php`

```
SafeStudio\Firebase\FirebaseServiceProvider::class,
```

Add this to your aliases for shorter code:

```
'Firebase' => SafeStudio\Firebase\Facades\FirebaseFacades::class,
```

Insert the config settings in `config/services.php` like this:

```
    'firebase' => [
        'database_url' => env('FB_DATABASE', 'https://project-id.firebaseio.com/'),
        'secret' => env('FB_DATABASE_KEY', 'dbsecretkey'),
    ]
```

> You can get Firebase `secret` token like so:
>
> - Click on the gear icon in you Firebase Console
> - Click Project settings
> - Click on the Service Account tab
> - Click on the Database Secrets link in the inner left-nav
> - Hover over the non-displayed secret and click Show

#### Lumen

[](#lumen)

```
composer require safestudio/firebase-laravel
```

After installing composer package, add the ServiceProvider to the providers array in `bootstrap/app.php`

```
$app->register(SafeStudio\Firebase\FirebaseServiceProvider::class);
```

Add this to your aliases for shorter code:

```
class_alias(SafeStudio\Firebase\Facades\FirebaseFacades::class, 'Firebase');
```

Make sure this line is uncommented:

```
$app->withFacades();
```

Add this line:

```
$app->configure('services');
```

Insert the environment variables in `.env` like this:

```
FB_DATABASE=https://PROJECT.firebaseio.com
FB_DATABASE_KEY=KB2xZjJgAvmPROJECT8ykNrT6f2emuuaxJTr9

```

Insert the config settings in `config/services.php` like this:

```
    'firebase' => [
        'database_url' => env('FB_DATABASE', 'https://project-id.firebaseio.com/'),
        'secret' => env('FB_DATABASE_KEY', 'dbsecretkey'),
    ]
```

> You can get Firebase `secret` token like so:
>
> - Click on the gear icon in you Firebase Console
> - Click Project settings
> - Click on the Service Account tab
> - Click on the Database Secrets link in the inner left-nav
> - Hover over the non-displayed secret and click Show

Usage
=====

[](#usage)

```
$data = ['key' => 'data' , 'key1' => 'data1']
Firebase::set('/test/',$data);

Firebase::get('/test/',['print'=> 'pretty']);

Firebase::push('/test/',$data);

Firebase::update('/test/',['key1' => 'Updating data by key']);

Firebase::delete('/test/');
```

---

For more options see firebase REST [official documentation](https://firebase.google.com/docs/database/rest/start)

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 55.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 ~83 days

Total

2

Last Release

3237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6ed2eb1ea64addc5ab0e64c35d5da6dadf6e4eb768cfe51f122dcf5784e23cd?d=identicon)[ansidev](/maintainers/ansidev)

---

Top Contributors

[![uchm4n](https://avatars.githubusercontent.com/u/1173405?v=4)](https://github.com/uchm4n "uchm4n (16 commits)")[![ansidev](https://avatars.githubusercontent.com/u/6688235?v=4)](https://github.com/ansidev "ansidev (13 commits)")

---

Tags

composerfirebasefirebase-databaselaravellumenapiframeworklaravelrestwrapperfirebase

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/safestudio-firebase-laravel/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[lanin/laravel-api-exceptions

All in one solution for exception for JSON REST APIs on Laravel and Lumen.

40104.3k](/packages/lanin-laravel-api-exceptions)

PHPackages © 2026

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