tomatophp/laravel-firebase
Laravel Firebase integration for connecting your app to Firebase services with less boilerplate. Includes configuration helpers and a clean API for authentication, Firestore data, and cloud messaging, making it easy to send notifications and sync records from your Laravel or Tomatophp panel.
kreait/firebase-php Admin SDK into Laravel's container and config, so a feature team can go from "we need push" to a working queued job in roughly half a day of integration rather than a sprint. Treat it as a fast lane to a concrete, demoable capability — not as an architecture.Adopt when:
.env-driven credential handling and container/facade ergonomics for feature teams.kreait/firebase-php pin), and accept that the upstream kreait docs, not this package's, are your real reference.Look elsewhere or proceed with high caution when:
kreait/firebase-php directly in a service provider (~20 lines, actively maintained).kreait/firebase-php version is stale for your needs. kreait ships breaking changes on major bumps; a wrapper frozen in early 2024 may pin you out of newer FCM HTTP v1 features, emulator support, or Firestore query builders you'd otherwise want. If the pin is too old, build the direct binding.For executives: This is a small, MIT-licensed integration library that lets our Laravel backend talk to Firebase — primarily so we can ship push notifications and verify mobile user identity server-side. The engineering cost is measured in hours, not sprints, so it's a cheap way to unblock a user-facing capability. The honest caveat is maturity: it has essentially no community adoption and a single maintainer, so we treat it as a starter kit we own and can fork rather than a vendor dependency. That risk is contained because the underlying capability comes from a mature upstream SDK and the wrapper is small enough to replace in an afternoon.
For engineering: It's a thin service-provider wrapper over kreait/firebase-php. Inject the Messaging/Auth contracts rather than reaching for the facade, keep Firebase behind your own PushNotifier-style interface from the very first commit, and put sends on a queue with retries and token pruning. Pin the exact version, check what kreait version it resolves to before you build on it, and be ready to bind the SDK directly if the wrapper lags. Budget about half a day to first push, most of which is Firebase console and credential setup — not code.
The one-line framing: buy the glue, own the risk, keep the exit cheap.
How can I help you explore Laravel packages today?