Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

jeromegamez/firebase-php-examples

Repository files navigation

Firebase Admin SDK Examples

Example Symfony 6 Project using https://github.com/kreait/firebase-php

Sponsor

How to use

git clone git@github.com:jeromegamez/firebase-php-examples.git
cd firebase-php-examples
composer install
cp .env.dist .env
# Set FIREBASE_CREDENTIALS with the path to your credentials file
bin/console list app

Running the server

# Show available routes
bin/console debug:router
# Start the server
bin/console server:start

Available commands

bin/console app:create-user                  # Creates a Firebase user
bin/console app:fcm:send-message             # Send an FCM message
bin/console app:remote-config:list-versions  # Lists all remote config versions
bin/console app:reset-project                # Reset parts of a Firebase project to its initial state
bin/console app:upload-file                  # Upload a file to Firebase storage

Deploying to Google Cloud Engine

You can deploy the application to Google Cloud Engine with the following command:

gcloud app deploy

Make sure to remove/override the credentials setting when running on GCE - the SDK SDK will autodiscover the credentials on the GCE environment to connect to the Firebase services.

About

Example Firebase Symfony application using the Firebase PHP Admin SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages