PHPackages                             csrui/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. csrui/laravel-firebase-auth

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

csrui/laravel-firebase-auth
===========================

Secure your laravel API with Google Firebase Auth

193.7k9[3 issues](https://github.com/csrui/laravel-firebase-auth/issues)[1 PRs](https://github.com/csrui/laravel-firebase-auth/pulls)PHP

Since Jan 27Pushed 7y ago5 watchersCompare

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

READMEChangelogDependenciesVersions (2)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 csrui/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,
    ],
],
```

TODO: Improve examples

Support
-------

[](#support)

Feel free to open issues and provide feedback.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

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://www.gravatar.com/avatar/dac8ba0c3885a68da97d75957c5b3d9f28d99f28a6739eca3af99506f291137b?d=identicon)[csrui](/maintainers/csrui)

---

Top Contributors

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

---

Tags

laravellaravel-5-package

### Embed Badge

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

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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