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 1mo 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 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

1858d 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

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M52](/packages/php-open-source-saver-jwt-auth)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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