Download the PHP package tatter/fireauth without Composer

On this page you can find all versions of the php package tatter/fireauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fireauth

Tatter\Fireauth

Myth:Auth Firebase extension for CodeIgniter 4

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

This module extends Myth:Auth to allow logins from Firebase Authentication by replacing the default login view with one configured for your Firebase app.

Installation

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

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

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

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:

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:

For more info on acquiring your config file see Firebase Project Support

Usage

This library works through Myth:Auth's LocalAuthenticator class to display the login and provide a service for checking logged in user access and permissions. Since Firebase handles the actual authentication you will need to configure your project there first and then use this module's config file to match the desired behavior.

Myth:Auth defines a named route for "login" which will display the Firebase form. Once Firebase has complete authentication it sends the completed user information to the callback where the account is verified and the user is logged in.

Read more about authentication at Myth:Auth's Authentication docs.

Example login

This is an example of what you should expect from Firebase's authResult that is used by the callback to process the login:

You may do additional processing of the user object by defining an Event (in app/Config/Events.php) that receives the firebase_new_user trigger:


All versions of fireauth with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
myth/auth Version dev-develop
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tatter/fireauth contains the following files

Loading the files please wait ....