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

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

devig/firebase-laravel-auth-sidecar
===================================

Firebase Auth Add-on for Laravel

1.2(5y ago)04MITPHP

Since Feb 14Pushed 5y agoCompare

[ Source](https://github.com/devig/firebase-laravel-auth-sidecar)[ Packagist](https://packagist.org/packages/devig/firebase-laravel-auth-sidecar)[ RSS](/packages/devig-firebase-laravel-auth-sidecar/feed)WikiDiscussions master Synced 1mo ago

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

[![Latest Stable Version](https://camo.githubusercontent.com/1f5d7fdfa6c8a4dd1499ed4db183109a90f58032dfa133c38b5fd7e7423fee60/68747470733a2f2f706f7365722e707567782e6f72672f6762726974732f66697265626173652d6c61726176656c2d617574682d736964656361722f762f737461626c65)](https://packagist.org/packages/gbrits/firebase-laravel-auth-sidecar)[![Total Downloads](https://camo.githubusercontent.com/edc564cb1137ac61c5bb4ca534054fd1c837bb29727f33f98ac94eb9538639e0/68747470733a2f2f706f7365722e707567782e6f72672f6762726974732f66697265626173652d6c61726176656c2d617574682d736964656361722f646f776e6c6f616473)](https://packagist.org/packages/gbrits/firebase-laravel-auth-sidecar)[![Monthly Downloads](https://camo.githubusercontent.com/d6d48a0d1b70772907955fabd124bce0e749e2cbde794f52a1eaa6021930809c/68747470733a2f2f706f7365722e707567782e6f72672f6762726974732f66697265626173652d6c61726176656c2d617574682d736964656361722f642f6d6f6e74686c79)](https://packagist.org/packages/gbrits/firebase-laravel-auth-sidecar)[![Daily Downloads](https://camo.githubusercontent.com/61ea7d39a6dd0f38bd55ca6b87f69aee1430625fda25386b10cd31e84b573a5b/68747470733a2f2f706f7365722e707567782e6f72672f6762726974732f66697265626173652d6c61726176656c2d617574682d736964656361722f642f6461696c79)](https://packagist.org/packages/gbrits/firebase-laravel-auth-sidecar)[![License](https://camo.githubusercontent.com/520e9dd63fc362dca8d502a9313f5bfe5fb9757d53ed51351d439faf48d2d66a/68747470733a2f2f706f7365722e707567782e6f72672f6762726974732f66697265626173652d6c61726176656c2d617574682d736964656361722f6c6963656e7365)](https://packagist.org/packages/gbrits/firebase-laravel-auth-sidecar)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=3TGHRLQAXRL6L&currency_code=AUD&source=url)

Firebase Laravel Auth Sidecar
=============================

[](#firebase-laravel-auth-sidecar)

[![Google Latched onto Laravel](/screenshots/sidecar.jpg)](/screenshots/sidecar.jpg)

Installation
------------

[](#installation)

#### Via Composer Require

[](#via-composer-require)

You may install by running the `composer require` command in your terminal:

```
composer require gbrits/firebase-laravel-auth-sidecar

```

#### Add your Firebase project ID, API key and auth domain into your `.env`

[](#add-your-firebase-project-id-api-key-and-auth-domain-into-your-env)

```
FIREBASE_API_KEY=AIzXXgibberxJf4_5rlradjabberTsMpX
FIREBASE_AUTH_DOMAIN=acme.firebaseapp.com
FIREBASE_DATABASE_URL=https://acme.firebaseio.com
FIREBASE_PROJECT_ID=acme
FIREBASE_STORAGE_BUCKET=acme.appspot.com
FIREBASE_MESSAGING_SENDER_ID=800813513371

```

#### Add the service provider to your `config/app.php`

[](#add-the-service-provider-to-your-configappphp)

```
Gbrits\Firebase\Auth\ServiceProvider::class,

```

#### Publish vendor files (Blade directive views)

[](#publish-vendor-files-blade-directive-views)

```
php artisan vendor:publish --provider="Gbrits\Firebase\Auth\ServiceProvider"

```

#### Minor adjustment to include the trait `Http/Controllers/Auth/LoginController.php`

[](#minor-adjustment-to-include-the-trait-httpcontrollersauthlogincontrollerphp)

```
use Gbrits\Firebase\Auth\AuthenticatesUsers;
class LoginController extends Controller {
  use RegistersUsers, AuthenticatesUsers, ValidatesRequests;

```

#### Add fillable Firebase fields to your user model `App/User.php`

[](#add-fillable-firebase-fields-to-your-user-model-appuserphp)

```
$fillable = [
  ~ all your other fields ~, 'id_token', 'photo_url'
];

```

#### Add some routes to `web.php`

[](#add-some-routes-to-webphp)

```
Route::post('auth', 'Auth\LoginController@postAuth')->name('postAuth');
Route::get('logout', 'Auth\LoginController@logout')->name('logout');

```

#### Add some *Blade* components to your existing layout

[](#add-some-blade-components-to-your-existing-layout)

##### To be placed in the header:

[](#to-be-placed-in-the-header)

```
@firebaseuiheader

```

##### To be placed in the body:

[](#to-be-placed-in-the-body)

```
@firebaseuiwidget

```

##### To be placed in the footer:

[](#to-be-placed-in-the-footer)

```
@firebaseuifooter

```

#### 🎉 Finally, clear the config cache and then clear the view cache. In that order:

[](#tada-finally-clear-the-config-cache-and-then-clear-the-view-cache-in-that-order)

```
php artisan config:cache
php artisan view:cache

```

Specifically in that order, as the Laravel directives utilise config values. Be sure to clear the view cache with every alteration you make to the directive views (in the vendor files), otherwise your changes won't apply.

#### Screenshots

[](#screenshots)

[![FirebaseUI Web](/screenshots/sign-in-providers.png)](/screenshots/sign-in-providers.png)

#### Dependencies

[](#dependencies)

- [Firebase php JWT](https://github.com/firebase/php-jwt)
- [FirebaseUI Web](https://github.com/firebase/firebaseui-web)

#### Donate

[](#donate)

Oh go on, [buy me a beer](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=3TGHRLQAXRL6L&currency_code=AUD&source=url). Or a sugarfree Rockstar.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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 ~571 days

Total

2

Last Release

2070d ago

### Community

Maintainers

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

---

Top Contributors

[![gbrits](https://avatars.githubusercontent.com/u/14840021?v=4)](https://github.com/gbrits "gbrits (84 commits)")[![vinothkannans](https://avatars.githubusercontent.com/u/9372109?v=4)](https://github.com/vinothkannans "vinothkannans (44 commits)")[![devig](https://avatars.githubusercontent.com/u/2635075?v=4)](https://github.com/devig "devig (2 commits)")[![bevss](https://avatars.githubusercontent.com/u/5658218?v=4)](https://github.com/bevss "bevss (1 commits)")[![johnrnunez](https://avatars.githubusercontent.com/u/5658218?v=4)](https://github.com/johnrnunez "johnrnunez (1 commits)")

---

Tags

laravelauthAuthenticationfirebasegbrits

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M344](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

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

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[vinkas/firebase-auth-laravel

Firebase Authentication package for Laravel PHP Framework

392.1k](/packages/vinkas-firebase-auth-laravel)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)

PHPackages © 2026

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