// the find
brozot/Laravel-FCM
Laravel-FCM is an easy to use package working with both Laravel and Lumen for sending push notification with Firebase Cloud Messaging (FCM).
A Laravel/Lumen package for sending Firebase Cloud Messaging push notifications. It wraps FCM's HTTP API with a builder pattern for constructing notification payloads, handles downstream (single/multi-device), topic, and group messages, and exposes response objects that tell you which tokens need to be deleted or rotated. Aimed at PHP devs who want FCM without writing the HTTP plumbing themselves.
The response API is genuinely useful — tokensToDelete(), tokensToModify(), tokensToRetry() map directly to the token lifecycle work you actually have to do after each send. The builder pattern for options/notification/data payloads is clean and avoids massive associative arrays. Mock response classes are included for testing, which is thoughtful. Topics condition API abstracts FCM's awkward string condition syntax into chainable PHP calls.
The package targets FCM's legacy HTTP v1 API — Firebase deprecated the server key authentication model this wraps in 2023 and shut it down in June 2024, so FCM_SERVER_KEY-based sending is broken in production right now. Last meaningful activity predates the v1 migration. No support for the HTTP v1 API with OAuth 2.0 service account tokens, which is what you actually need today. XMPP is explicitly unsupported and the project shows no sign of ever adding it.