PHPackages                             brianfp/laravel-firebase-auth - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. brianfp/laravel-firebase-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

brianfp/laravel-firebase-auth
=============================

Secure your laravel API with Google Firebase Auth

1.1.2(5y ago)07MITPHPPHP ^7.3.0

Since Jan 27Pushed 5y agoCompare

[ Source](https://github.com/brianfp/laravel-firebase-auth)[ Packagist](https://packagist.org/packages/brianfp/laravel-firebase-auth)[ RSS](/packages/brianfp-laravel-firebase-auth/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

laravel-firebase-auth
=====================

[](#laravel-firebase-auth)

Secure your laravel API with Google Firebase Auth

Adding the *Middleware* to your API will ensure that access is granted only using a valid Bearer Token issues by Goggle Firebase Auth.

Install
-------

[](#install)

```
composer require brianfp/laravel-firebase-auth
```

Publish the package's config.

```
php artisan vendor:publish
```

This will add a firebase.php config file where you need to add you Firebase **Project ID**.

How to use
----------

[](#how-to-use)

There are two ways to use this.

### 1. Lock access without JWT token

[](#1-lock-access-without-jwt-token)

Add the *Middleware* on your *Kernel.php* file.

```
\csrui\LaravelFirebaseAuth\Middleware\JWTAuth::class,
```

### 2. Lock access and identify the client requester

[](#2-lock-access-and-identify-the-client-requester)

Add the Service Provider to your config/app.php

```
csrui\LaravelFirebaseAuth\FirebaseAuthServiceProvider::class,
```

Register your new Guard on you AuthServiceProvider.php

```
$this->app['auth']->viaRequest('firebase', function ($request) {
    return app(\csrui\LaravelFirebaseAuth\Guard::class)->user($request);
});
```

Now on you auth.php configure you Guard driver to 'firebase'.

```
'providers' => [
    'users' => [
        'driver' => 'firebase',
        'model' => \csrui\LaravelFirebaseAuth\User::class,
    ],
],
```

Support
-------

[](#support)

Feel free to open issues and provide feedback.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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 ~0 days

Total

3

Last Release

1914d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a91f7c8918681b974b97f16953e37f2f76aa5495864e8cb7c70d56cdd9a3603f?d=identicon)[Brian-FP](/maintainers/Brian-FP)

---

Top Contributors

[![csrui](https://avatars.githubusercontent.com/u/205312?v=4)](https://github.com/csrui "csrui (11 commits)")[![brianfp](https://avatars.githubusercontent.com/u/15164262?v=4)](https://github.com/brianfp "brianfp (4 commits)")

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M307](/packages/laravel-horizon)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.7k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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