Package which sets up Firebase authentication for our Laravel applications
salt/firebase is a Laravel package for package which sets up firebase authentication for our laravel applications.
It currently has 0 GitHub stars and 7.037 downloads on Packagist (latest version 1.0.10).
Install it with composer require salt/firebase.
Discover more Laravel packages by salt
or browse all Laravel packages to compare alternatives.
Last updated
You can install the package via composer:
composer require salt/firebase
You can publish and run the migrations with:
php artisan vendor:publish --tag="salt-firebase-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="salt-firebase-config"
This is the contents of the published config file:
<?php
return [
'firebase' => [
'database_url' => env('FIREBASE_DATABASE_URL', ''),
'project_id' => env('FIREBASE_PROJECT_ID', ''),
'private_key_id' => env('FIREBASE_PRIVATE_KEY_ID', 'your-key'),
'private_key' => str_replace('\\n', "\n", env('FIREBASE_PRIVATE_KEY', '')),
'client_email' => env('FIREBASE_CLIENT_EMAIL', '[email protected]'),
'client_id' => env('FIREBASE_CLIENT_ID', ''),
'client_x509_cert_url' => env('FIREBASE_CLIENT_x509_CERT_URL', ''),
],
// Map the route names used in this package with the application's route names
'routes' => [
'login' => 'login',
'logout' => 'logout',
'login_success' => 'index',
'login_error' => 'error',
],
// Specify allowed email domains for authentication
// In addition to those allowed by config/auth.php
'allowed_emails' => ['@okayemail.com'],
];
View the documentation for this package here
Install dependencies using composer install and npm install (for generating documentation).
Install the precommit using git config core.hooksPath .githooks
composer test
XDEBUG_MODE=coverage composer coverage
To release a new version, first create a tag on the main branch with the new version number. E.g "1.0.1":
git tag -a 1.0.1 -m "Release version 1.0.1"
Then push that tag up to GitHub:
git push origin 1.0.1
A new version will automatically be created on packagist which will then be available for installation.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.