PHPackages                             tatter/fireauth - 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. tatter/fireauth

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

tatter/fireauth
===============

Myth:Auth Firebase extension for CodeIgniter 4

v1.0.2(5y ago)64432[2 PRs](https://github.com/tattersoftware/codeigniter4-fireauth/pulls)MITPHPPHP ^7.2

Since Dec 19Pushed 3y ago2 watchersCompare

[ Source](https://github.com/tattersoftware/codeigniter4-fireauth)[ Packagist](https://packagist.org/packages/tatter/fireauth)[ Docs](https://github.com/tattersoftware/codeigniter-fireauth)[ RSS](/packages/tatter-fireauth/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Tatter\\Fireauth
================

[](#tatterfireauth)

Myth:Auth Firebase extension for CodeIgniter 4

Quick Start
-----------

[](#quick-start)

1. Install with Composer: `> composer require tatter/fireauth`
2. Add credentials to your environment configuration **.env**
3. Set the Myth:Auth login view: `'login' => 'Tatter\Fireauth\Views\login'`

Description
-----------

[](#description)

This module extends [Myth:Auth](https://github.com/lonnieezell/myth-auth) to allow logins from [Firebase Authentication](https://firebase.google.com/docs/auth) by replacing the default login view with one configured for your Firebase app.

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

[](#installation)

Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:

- `> composer require tatter/fireauth`

Or, install manually by downloading the source files and adding the directory to `app/Config/Autoload.php`.

Configuration
-------------

[](#configuration)

The library's default behavior can be altered by extending its config file. Copy **examples/Fireauth.php** to **app/Config/** and follow the instructions in the comments. If no config file is found in **app/Config** the library will use its own.

### Credentials

[](#credentials)

The login view uses your Firebase app's credentials to connect to your project. You must provide the public API key in the **.env** file in the root of your project. Add this to the bottom of your file:

```
#--------------------------------------------------------------------
# FIREBASE
#--------------------------------------------------------------------

# firebase.apiKey = YOUR_API_KEY_HERE

```

Before using the UI you must be sure the configuration parameters are loaded and the Firebase instance initialized. For example, your layout might include this:

```
