nasrul21 / php-fcm-client
Firebase Cloud Messaging (FCM) client for PHP
Installs: 587
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/nasrul21/php-fcm-client
Requires
- php: >= 7.0
This package is auto-updated.
Last update: 2025-09-29 02:22:22 UTC
README
A Simple PHP Library for sending FCM (Firebase Cloud Messages)
Requirement
PHP>= 7.0Composeras package manager
Installation
composer require nasrul21/php-fcm-client
Quickstart
<?php // load composer require 'vendor/autoload.php'; // set api key $apiKey = "..." // your fcm api key // initialize FCMClient with apiKey as params $fcm = new FCMClient($apiKey); $registration_ids = ["...", "..."]; $title = "Hello!"; $body = "This is the body"; // send fcm notifications $fcm->send($registration_ids, $title, $body);