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

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

pechanxur/laravel-firebase-auth
===============================

Secure your laravel API with Google Firebase Auth

068PHP

Since Jan 27Pushed 6y agoCompare

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

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 pechanxur/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.

```
\pechanxur\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

```
pechanxur\LaravelFirebaseAuth\FirebaseAuthServiceProvider::class,
```

Register your new Guard on you AuthServiceProvider.php

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

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

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

TODO: Improve examples

Support
-------

[](#support)

Feel free to open issues and provide feedback.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55% 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/a826a594bfc689c0768d8e03d18bc55c97a13b42440ff75e957c5dd8791c4999?d=identicon)[pechanxur](/maintainers/pechanxur)

---

Top Contributors

[![csrui](https://avatars.githubusercontent.com/u/205312?v=4)](https://github.com/csrui "csrui (11 commits)")[![pechanxur](https://avatars.githubusercontent.com/u/20100156?v=4)](https://github.com/pechanxur "pechanxur (6 commits)")[![wrtisans](https://avatars.githubusercontent.com/u/44764875?v=4)](https://github.com/wrtisans "wrtisans (3 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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