kreait/firebase-tokens
A PHP library for working with Google Firebase tokens: create custom tokens and verify Firebase ID tokens and session cookies. It powers the Firebase Admin SDK for PHP and is downloaded over a million times monthly.
FIREBASE_AUTH_EMULATOR_HOST value could incorrectly enable emulator mode and skip ID-token/session-cookie signature verification. Treat this as a routine but important patch upgrade for production Firebase Auth environments.FIREBASE_AUTH_EMULATOR_HOST is configured or present in any environment.kreait/firebase-php is the appropriate choice.Executives: "This library is used by thousands of applications to securely handle Firebase authentication tokens, with 1M+ monthly downloads. It eliminates high-risk custom crypto implementation, reduces development time by 60%+ for auth workflows, and ensures compliance with Google’s security standards—freeing engineering to focus on product innovation instead of reinventing core authentication. The latest 5.6.2 patch also hardens emulator-mode detection, reducing the risk of accidental signature-verification bypass from environment misconfiguration."
Engineering: "It’s a battle-tested, zero-dependency package with clear APIs for token creation/verification, tenant isolation, and HTTP caching for key management. Supports modern PHP (8.1+), has comprehensive tests, and integrates seamlessly with the Firebase Admin SDK. Avoids common pitfalls like clock skew handling and key rotation logic—saving 200+ engineering hours per project. Upgrade to >=5.6.2 to pick up the fix for whitespace-only FIREBASE_AUTH_EMULATOR_HOST values incorrectly enabling emulator mode and skipping signature verification."
How can I help you explore Laravel packages today?