canhph2 / simple-firebase-http-v1-php
A Simple Firebase library using HTTP v1 API for PHP
dev-main
2025-01-07 07:02 UTC
Requires
- php: ^7.2.3
- ext-json: *
- google/auth: ^1.8
- guzzlehttp/guzzle: ^6.2.1|^7.0
- guzzlehttp/promises: ^1.4
- guzzlehttp/psr7: ^1.7
This package is auto-updated.
Last update: 2025-05-07 11:49:32 UTC
README
- Forked from author: Cong Nguyen Quang
- Docs: https://firebase.google.com/docs/cloud-messaging/migrate-v1
- Reference the 3rd library: https://github.com/kreait/firebase-php
How to install
composer require canhph2/simple-firebase-http-v1-php
Required
- The
firebase-service-account-credentials.json
in your server (or your local machine),- Download the file in Firebase > Project settings > Service Account > Generate new private key
- Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the file path of the JSON file that contains your service account key.
export GOOGLE_APPLICATION_CREDENTIALS="/<FULL PATH OF>/service-account-file.json"
DevOps
Release a new version
sh .ops/release-a-new-version.sh