Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Firebase Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Push notifications as a shippable feature, not a research project. Server-triggered FCM push (transactional notices, order/shipment updates, chat alerts, re-engagement) is the single most common reason a Laravel backend reaches for Firebase. This package wires the mature 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.
  • Server-side identity verification for mobile/web clients. Verifying Firebase ID tokens on the backend lets you trust client-issued identities (account linking, gated API access, minting a Laravel session) without building your own token pipeline. This underwrites a clean decision: Firebase Auth on the client, Laravel as the system of record, together with the authorization and data-ownership implications that follow.
  • The build-vs-buy call here is trivial; the real decision lives upstream. The package is a thin config-and-DI wrapper over a community SDK — adopting it costs hours. So the roadmap-weighty question is not "should we use this wrapper?" but "is Firebase the right platform primitive for us" (FCM/Firestore/Auth as a suite). Frame the package as an accelerator on top of that decision, never the reason for it.
  • Roadmap sequencing when Firebase is already the mobile platform. If Firebase is chosen for the app, this unlocks a backlog of near-term features — push, custom-claims-based roles, topic/subscription management, stale-token pruning — with no dependency on a platform migration. If Firebase is not yet chosen, this package must not tip the decision; it's glue, not strategy.
  • Environment and tenant separation as a release-management lever. Config-driven credentials let staging and production (and potentially per-tenant projects) point at different Firebase projects — useful for compliance separation and safe release gating. Worth deciding early: the wrapper assumes a single configured project, so true multi-project isolation means hand-rolled factories and is a deliberate engineering ask.
  • Back-office and lifecycle automation. Bulk user lookups, custom-claim assignment on role changes, topic subscription management and data backfills become scriptable as artisan commands or queued jobs — reducing ad-hoc manual work in ops and support.

When to Consider This Package

Adopt when:

  • Your stack is a supported Laravel/PHP version and you need Firebase Admin capabilities (FCM, custom tokens, ID-token verification, Firestore/Realtime DB) from PHP with minimal ceremony.
  • Notifications and token checks are your primary workload — moderate volume, largely fire-and-forget — where a thin wrapper's overhead is irrelevant and its convenience is real.
  • You value .env-driven credential handling and container/facade ergonomics for feature teams.
  • You can pin an exact version, audit the dependency chain (especially the transitive 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:

  • The adoption signal is near zero — 1 star, 0 dependents, a single maintainer, last release March 2024. Anything on a critical path (auth, payments-adjacent flows, anything where a silent delivery failure costs revenue) carries real supply-chain and bus-factor risk. Mitigate by wrapping the SDK behind your own interface from day one, pinning the exact version, and keeping a fork-and-patch runbook — or skip the wrapper entirely and bind kreait/firebase-php directly in a service provider (~20 lines, actively maintained).
  • The resolved 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.
  • You need multiple Firebase projects simultaneously, emulator-based testing, or advanced Firestore capabilities the wrapper doesn't expose. Don't fight the single-config assumption — the wrapper is thin enough to outgrow in minutes.
  • You're evaluating Firebase itself for the first time. This package should accelerate a decision already made, not serve as the evaluation artifact.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console