Download the PHP package maatify/google-fcm without Composer
On this page you can find all versions of the php package maatify/google-fcm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maatify/google-fcm
More information about maatify/google-fcm
Files in maatify/google-fcm
Package google-fcm
Short Description Unofficial Firebase Admin SDK for PHP its PHP library for maatify.dev FCM handler, known by our team
License proprietary
Homepage https://github.com/Maatify/
Informations about the package google-fcm
About
Note:
This Library is smiller to kreait/firebase-php
View kreait/firebase-php Docs
View kreait/firebase-php on GitHub
Installation
Usage
Project Instance
Note: $message will use in whole project handler #
Message Preparing and Send
Notification Setter For FCM
Data Setter For FCM
Send FCM To Device Token
Send FCM To Multiple Devices Token
Send FCM To Topic
Topic Validate
If you have a set of registration tokens that you want to check for validity or if they are still registered to your project, you can use the validateTokens() method:
Topic Validation
Topics Validation
Note:
valid
contains all tokens that are valid and registered to the current Firebase projectunknown
contains all tokens that are valid, but not registered to the current Firebase projectinvalid
contains all invalid (=malformed) tokens
Topic Management
You can subscribe one or multiple devices to one or multiple messaging topics with the following methods:
Topic Instance
Note: for all Topic Management
$registrationTokenOrTokens
can be string if one token or array if many tokens
$topic
is device token in string$topics
is devices tokens in array
Subscribe To Topic
Subscribe To Topics
Unsubscribe From Topic
Unsubscribe From Topics
Unsubscribe From All Topics
The result will return an array win which the keys are the topic names, and the values are the operation results for the individual tokens.
Note:
You can subscribe up to 1,000 devices in a single request. If you provide an array with over 1,000 registration tokens, the operation will fail with an error.
All versions of google-fcm with dependencies
maatify/logger Version ^1.0
ext-curl Version *
kreait/firebase-php Version ^6.9