Download the PHP package andimariadi/php-firebase-cloud-messaging without Composer
On this page you can find all versions of the php package andimariadi/php-firebase-cloud-messaging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andimariadi/php-firebase-cloud-messaging
More information about andimariadi/php-firebase-cloud-messaging
Files in andimariadi/php-firebase-cloud-messaging
Package php-firebase-cloud-messaging
Short Description PHP API for Firebase Cloud Messaging from Google
License MIT
Homepage https://github.com/andimariadi/php-firebase-cloud-messaging
Informations about the package php-firebase-cloud-messaging
PHP Firebase Cloud Messaging
PHP API for Firebase Cloud Messaging from Google.
Currently this app server library only supports sending Messages/Notifications via HTTP.
See original Firebase docs: https://firebase.google.com/docs/
Migrate from legacy FCM APIs to HTTP v1
See original Firebase Migrate: https://firebase.google.com/docs/cloud-messaging/migrate-v1
- Update the server endpoint
Setup
Install via Composer:
Or add this to your composer.json and run "composer update":
Send message to one or multiple Devices
Send message to Topic
Currently sending to topics only supports a single topic as recipient. Mutliple topic as outlined in the google docs don't seem to work, yet.
Subscribe user to the topic
Remove user subscription to the topic
Interpreting responses
Responses given on the HTTP requests are standard according to the FCM documentations. You may find detailed specifications in this links: