Firebase Admin SDK for PHP¶
Interact with Google Firebase from your PHP application.
Note
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.
The source code can be found at https://github.com/kreait/firebase-php/ .
User Guide¶
- Overview
- Setup
- Cloud Messaging
- Initializing the Messaging component
- Getting started
- Send messages to topics
- Send conditional messages
- Send messages to specific devices
- Send messages to multiple devices (Multicast)
- Send multiple messages at once
- Adding a notification
- Adding data
- Changing the message target
- Adding target platform specific configuration
- Adding platform independent FCM options
- Notification Sounds
- Using Emojis
- Sending a fully configured raw message
- Validating messages
- Topic management
- App instance management
- Cloud Firestore
- Cloud Storage
- Realtime Database
- Authentication
- User management
- Dynamic Links
- Remote Config
- Framework Integrations
- Tutorials
- Troubleshooting
- Call to private/undefined method …
- PHP Parse Error/PHP Syntax Error
- Class ‘Kreait\Firebase\ …’ not found
- Call to undefined function
openssl_sign()
- Default sound not played on message delivery
- cURL error XX: …
- ID Tokens are issued in the future
- “403 Forbidden” Errors
- MultiCast SendReports are empty
- Proxy configuration
- Debugging