PHPackages                             piotzkhider/firebase-authentication-module - 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. piotzkhider/firebase-authentication-module

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

piotzkhider/firebase-authentication-module
==========================================

1.0.0(6y ago)131MITPHPPHP &gt;=7.1.0

Since Aug 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/piotzkhider/BEAR.FirebaseAuthenticationModule)[ Packagist](https://packagist.org/packages/piotzkhider/firebase-authentication-module)[ RSS](/packages/piotzkhider-firebase-authentication-module/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

BEAR.FirebaseAuthenticationModule
=================================

[](#bearfirebaseauthenticationmodule)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1963f8742825598af46a280da36a3baacc8f08ce73f99e47ccc83241231c227e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70696f747a6b68696465722f424541522e466972656261736541757468656e7469636174696f6e4d6f64756c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/piotzkhider/BEAR.FirebaseAuthenticationModule/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/d1303b62d8a8f6b16e32b98d1042c5e2857032d4dd2fe1ca8f77f519973bd2cd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70696f747a6b68696465722f424541522e466972656261736541757468656e7469636174696f6e4d6f64756c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/piotzkhider/BEAR.FirebaseAuthenticationModule/?branch=master)[![Build Status](https://camo.githubusercontent.com/79bf983a7e0d123d9aad1c35c81265d31b27207ada9c4dbc22152093ea0f9d0b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70696f747a6b68696465722f424541522e466972656261736541757468656e7469636174696f6e4d6f64756c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/piotzkhider/BEAR.FirebaseAuthenticationModule/build-status/master)[![Build Status](https://camo.githubusercontent.com/0f52c40d4b011e52bbaedd5681ac4abb72fac98ad44dff5c27cca4fd396cace1/68747470733a2f2f7472617669732d63692e6f72672f70696f747a6b68696465722f424541522e466972656261736541757468656e7469636174696f6e4d6f64756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/piotzkhider/BEAR.FirebaseAuthenticationModule)

[Japanese](README.ja.md)

[Firebase](https://github.com/kreait/firebase-php) Authentication Module for [BEAR.Sunday](https://github.com/bearsunday/BEAR.Sunday)

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

[](#installation)

### Composer install

[](#composer-install)

```
$ composer require piotzkhider/firebase-authentication-module
```

### Module install

[](#module-install)

```
use Piotzkhider\FirebaseAuthenticationModule\FirebaseAuthenticationModule;
```

```
class AppModule extends AbstractAppModule
{
    /**
     * {@inheritdoc}
     */
    protected function configure()
    {
        $appDir = $this->appMeta->appDir;
        require_once $appDir . '/env.php';
        ...
        $this->install(new FirebaseAuthenticationModule(getenv('GOOGLE_APPLICATION_CREDENTIALS')));
        ...
    }
}
```

@Authenticate
-------------

[](#authenticate)

`@Authenticate` is a annotation for authentication.
Authentication process is executed before process the method.

```
class Tasks extends ResourceObject
{
    /**
     * @Authenticate
     */
    public function onGet(): ResourceObject
    {
```

The authenticated user can be defined directly as a method argument.
For that purpose it need specified in `@Authenticate` attribute. And it set `null` of default parameter in last of arguments like [`@Assisted`](https://github.com/ray-di/Ray.Di#assisted-injection).

```
class Tasks extends ResourceObject
{
    /**
     * @Authenticate(user="user")
     */
    public function onGet(UserRecord $user = null): ResourceObject
    {
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

Unknown

Total

1

Last Release

2452d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7950487?v=4)[piotzkhider](/maintainers/piotzkhider)[@piotzkhider](https://github.com/piotzkhider)

---

Top Contributors

[![piotzkhider](https://avatars.githubusercontent.com/u/7950487?v=4)](https://github.com/piotzkhider "piotzkhider (12 commits)")[![snicmakino](https://avatars.githubusercontent.com/u/6259566?v=4)](https://github.com/snicmakino "snicmakino (2 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/piotzkhider-firebase-authentication-module/health.svg)

```
[![Health](https://phpackages.com/badges/piotzkhider-firebase-authentication-module/health.svg)](https://phpackages.com/packages/piotzkhider-firebase-authentication-module)
```

###  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)[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)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)

PHPackages © 2026

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