Download the PHP package erickskrauch/fcm without Composer
On this page you can find all versions of the php package erickskrauch/fcm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download erickskrauch/fcm
More information about erickskrauch/fcm
Files in erickskrauch/fcm
Package fcm
Short Description PHP application server for google firebase cloud messaging (FCM)
License MIT
Homepage https://github.com/erickskrauch/php-fcm
Informations about the package fcm
Firebase Cloud Messaging PHP Client
Just another client to send push notifications via Firebase Cloud Messaging (FCM). The implementation is inspired by Paragraph1/php-fcm and its fork guigpm/php-fcm, but heavily reworked in favor of simpler code and better implementation.
Installation
This library relies on PSR-18 which defines how HTTP message should be sent and received. You can use any library to send HTTP messages that implements psr/http-client-implementation. Read more about PSR-18 in this blog.
To install this library with Guzzle you may run the following command:
Or using the curl client (you'll need to provide a PSR7 implementation such as nyholm/psr7 if not using Guzzle):
Usage
The component's constructor allows you to explicitly pass all dependencies. But you can also pass only the mandatory API token, and all other dependencies will be found automatically. The example below relies on auto discovery.
Contribute
This library in an Open Source under the MIT license. It is, thus, maintained by collaborators and contributors.
Feel free to contribute in any way. As an example you may:
- Trying out the
master
code. - Create issues if you find problems.
- Reply to other people's issues.
- Review PRs.
Ensuring code quality
The project has several tools for quality control. All checks are performed in CI, but if you want to perform checks locally, here are the necessary commands:
All versions of fcm with dependencies
ext-json Version *
php-http/discovery Version ^1.4
psr/http-client Version ^1.0
psr/http-client-implementation Version ^1.0
psr/http-factory Version ^1.0
psr/http-factory-implementation Version ^1.0