Interact with Google Firebase from your PHP application.
If you are interested in using the PHP Admin SDK as a client for end-user access (for example, in a web application), as opposed to admin access from a privileged environment (like a server), you should instead follow the instructions for setting up the client JavaScript SDK.
You can find the full documentation at firebase-php.readthedocs.io.
An example project can be found at https://github.com/jeromegamez/firebase-php-examples .
Feature | PHP | Node.js | Java | Python | Go |
---|---|---|---|---|---|
Custom Token Minting | ✅ | ✅ | ✅ | ✅ | ✅ |
ID Token Verification | ✅ | ✅ | ✅ | ✅ | ✅ |
Realtime Database API | ✅* | ✅ | ✅ | ✅* | ✅ |
User Management API | ✅ | ✅ | ✅ | ✅ | ✅ |
Remote Config | ✅ | ||||
Cloud Messaging API | ✅ | ✅ | ✅ | ✅ | ✅ |
Cloud Storage API | ✅ | ✅ | ✅ | ✅ | ✅ |
Cloud Firestore API | # | ✅ | ✅ | ✅ | ✅ |
* The Realtime Database API currently does not support realtime event listeners.
# An integration with google/cloud-firestore is currently not available to avoid the need to install the
grpc
PHP extension when using this SDK. morrislaptop/firestore-php is a new project that aims to provide support for the Firestore without the need to install thegrpc
PHP extension.
For errors and missing features, please use the issue tracker.
For general support, join the #php
channel at https://firebase.community/.