canhph2 / simple-firebase-http-v1-php
A Simple Firebase library using HTTP v1 API for PHP
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/canhph2/simple-firebase-http-v1-php
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-10-07 12:41:20 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.jsonin 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