kreait/firebase-php
Firebase Admin SDK
8.4.0
47M downloads/mo
#508 most downloaded on Packagist
beste/firebase-php
What this package is like to depend on
Last release 18 days ago
05 Aug 2026
Release timing varies
gaps range from 2 weeks to 4 months
Rarely documented
notes for 11 of 242 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
245 releases · first in 2015
9 releases in the last 12 months
see the full history below
Release timeline
245 releases · Jan 2015 to Aug 2026Releases
latest 60 of 245-
8.4.005 Aug 2026Release notes
Open source →- Added support for
guzzlehttp/guzzle:^8.0,guzzlehttp/psr7:^3.0andguzzlehttp/promises:^3.0. - Updated the
firebase/php-jwtconstraint to^7.0.2.
Release notes
Open source →- Added support for
guzzlehttp/guzzle:^8.0,guzzlehttp/psr7:^3.0andguzzlehttp/promises:^3.0. - Updated the
firebase/php-jwtconstraint to^7.0.2. Although CVE-2025-45769 is rated as low severity, it has been disputed on the basis that applications, rather than the library, are responsible for choosing appropriate key lengths. Nevertheless, a review of the library's most-downloaded dependents showed that most already support version 7.x.
- Added support for
-
8.3.017 Jul 2026Release notes
Open source →Security improvements
- Restricted Realtime Database URLs to Firebase-owned hosts and reject non-root URLs with embedded paths, query strings, or fragments while preserving emulator support. Related OWASP Top 10:2025 entry: A02 Security Misconfiguration.
- Updated dependency
mtdowling/jmespath.phpto2.9.2to address CVE-2026-54133
Release notes
Open source →Security improvements
- Restricted Realtime Database URLs to Firebase-owned hosts and reject non-root URLs with embedded paths, query strings, or fragments while preserving emulator support. Related OWASP Top 10:2025 entry: A02 Security Misconfiguration.
- Updated dependency
mtdowling/jmespath.phpto2.9.2to address CVE-2026-54133
-
8.2.004 Mar 2026Release notes
Open source →- Added support for Unicode characters in email addresses.
App Check
- Added replay-protection verification for App Check tokens via
verifyTokenWithReplayProtection(). The response now includesalreadyConsumedwhen replay protection is used. - Added transitional contract
Kreait\Firebase\Contract\AppCheckWithReplayProtection. This was introduced to preserve backwards compatibility by avoiding a signature change toKreait\Firebase\Contract\AppCheck::verifyToken()in the current major release. - Added dedicated exception
Kreait\Firebase\Exception\AppCheck\FailedToVerifyAppCheckReplayProtectionfor replay-protection verification failures. It extendsKreait\Firebase\Exception\AppCheck\FailedToVerifyAppCheckTokenfor backwards compatibility.
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development.Release notes
Open source →- Added support for Unicode characters in email addresses.
App Check
- Added replay-protection verification for App Check tokens via
verifyTokenWithReplayProtection(). The response now includesalreadyConsumedwhen replay protection is used. - Added transitional contract
Kreait\Firebase\Contract\AppCheckWithReplayProtection. This was introduced to preserve backwards compatibility by avoiding a signature change toKreait\Firebase\Contract\AppCheck::verifyToken()in the current major release. - Added dedicated exception
Kreait\Firebase\Exception\AppCheck\FailedToVerifyAppCheckReplayProtectionfor replay-protection verification failures. It extendsKreait\Firebase\Exception\AppCheck\FailedToVerifyAppCheckTokenfor backwards compatibility.
-
8.1.023 Jan 2026Release notes
Open source →Added support for
firebase/php-jwt:^7.0.2
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development. -
8.0.008 Jan 2026Release notes
Open source →Security improvements
- Added
#[SensitiveParameter]attributes to methods handling sensitive data (passwords, tokens, private keys)
to prevent them from appearing in stack traces and error logs.
Breaking changes
- The SDK supports only actively supported PHP versions. As a result, support for PHP < 8.3 has been dropped;
supported versions are 8.3, 8.4, and 8.5. - Firebase Dynamic Links was shut down on August 25th, 2025
and has been removed from the SDK. - Deprecated classes, methods and class constants have been removed.
- Method arguments are now fully type-hinted
- Type declarations have been simplified to reduce runtime overhead (e.g.,
Stringable|stringtostring). - The transitional
Kreait\Firebase\Contract\Transitional\FederatedUserFetcher::getUserByProviderUid()method
has been moved into theKreait\Firebase\Contract\Authinterface - Realtime Database objects considered value objects have been made final and readonly
psr/loghas been moved from runtime dependencies to development dependenciesKreait\Firebase\Contract\Messaging::BATCH_MESSAGE_LIMITconstant has been removed- Exception codes are no longer preserved when wrapping exceptions
Kreait\Firebase\Messaging\CloudMessagebuilder methods have been renamed to follow thewith*pattern:
toToken()->withToken(),toTopic()->withTopic(),toCondition()->withCondition().
The old methods are deprecated but still available as aliases.
See UPGRADE-8.0 for more details on the changes between 7.x and 8.0.
7.x Changelog
https://github.com/kreait/firebase-php/blob/7.24.0/CHANGELOG.md
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development.Release notes
Open source →Security improvements
- Added
#[SensitiveParameter]attributes to methods handling sensitive data (passwords, tokens, private keys) to prevent them from appearing in stack traces and error logs.
Breaking changes
- The SDK supports only actively supported PHP versions. As a result, support for PHP < 8.3 has been dropped; supported versions are 8.3, 8.4, and 8.5.
- Firebase Dynamic Links was shut down on August 25th, 2025 and has been removed from the SDK.
- Deprecated classes, methods and class constants have been removed.
- Method arguments are now fully type-hinted
- Type declarations have been simplified to reduce runtime overhead (e.g.,
Stringable|stringtostring). - The transitional
Kreait\Firebase\Contract\Transitional\FederatedUserFetcher::getUserByProviderUid()method has been moved into theKreait\Firebase\Contract\Authinterface - Realtime Database objects considered value objects have been made final and readonly
psr/loghas been moved from runtime dependencies to development dependenciesKreait\Firebase\Contract\Messaging::BATCH_MESSAGE_LIMITconstant has been removed- Exception codes are no longer preserved when wrapping exceptions
Kreait\Firebase\Messaging\CloudMessagebuilder methods have been renamed to follow thewith*pattern:toToken()->withToken(),toTopic()->withTopic(),toCondition()->withCondition(). The old methods are deprecated but still available as aliases.
See UPGRADE-8.0 for more details on the changes between 7.x and 8.0.
- Added
-
7.24.118 Feb 2026Release notes
Open source →Added support for
firebase/php-jwt:^7.0.2to remediate the vulnerabilities PKSA-y2cr-5h3j-g3ys and CVE-2025-4659.
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development. -
7.24.027 Nov 2025Release notes
Open source →Changed
- Realtime Database references are now validated by the API instead of locally. Validation rules can change at any time, and the SDK can only adapt to changes in the API. While local checks could prevent obviously invalid paths, they'd also require an SDK update whenever Firebase loosens a rule. Developers can be trusted not to use invalid paths 😅.
- Removed the
#[SensitiveParameter]attribute again, because it's supported by PHP 8.1 itself, but not in combination with Valinor. (#1034)
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development. -
7.23.012 Oct 2025 -
7.22.020 Sep 2025Release notes
Open source →Added
- Added support for PHP 8.5
Changed
- The project now features a custom logo (I came up with it myself, and took the wise decision to not look up if there's something similar already)
- Refined README for improved clarity, removed outdated documentation sections, and streamlined project support messaging with a more positive call to action
- Documentation now uses the modern Furo theme, providing a cleaner and more pleasant reading experience
Important
Support the project: This SDK is downloaded 1M+ times monthly and powers thousands of applications.
If it saves you or your team time, please consider sponsoring its development. -
7.21.215 Aug 2025Release notes
Open source →Fixed
- Re-added the
#[SensitiveParameter]attribute because, while it's not supported in PHP 8.1, it can still be used if placed in a standalone line above the variable or property. - Re-added support for JSON files with any file extension
- With the introduction of Valinor, Service Account credentials were required to have more fields than necessary to work with the SDK, although it only needs the client email, private key, and project ID.
- Re-added the
-
7.21.124 Jul 2025Nothing published for this version
-
7.21.023 Jul 2025Nothing published for this version
-
7.20.017 Jul 2025Nothing published for this version
-
7.19.014 Jun 2025Nothing published for this version
-
7.18.008 Mar 2025Nothing published for this version
-
7.17.022 Feb 2025Nothing published for this version
-
7.16.120 Jan 2025Nothing published for this version
-
7.16.017 Nov 2024Nothing published for this version
-
7.15.010 Sep 2024Nothing published for this version
-
7.14.020 Aug 2024Nothing published for this version
-
7.13.102 Jul 2024Nothing published for this version
-
7.13.023 Jun 2024Nothing published for this version
-
7.12.026 May 2024Nothing published for this version
-
7.11.015 May 2024Nothing published for this version
-
7.10.025 Apr 2024Nothing published for this version
-
7.9.104 Dec 2023Nothing published for this version
-
7.9.030 Nov 2023Nothing published for this version
-
7.8.025 Nov 2023Nothing published for this version
-
7.7.025 Nov 2023Nothing published for this version
-
7.6.006 Sep 2023Nothing published for this version
-
7.5.224 Aug 2023Nothing published for this version
-
7.5.129 Jun 2023Nothing published for this version
-
7.5.026 Jun 2023Nothing published for this version
-
7.4.018 Jun 2023Nothing published for this version
-
7.3.110 Jun 2023Nothing published for this version
-
7.3.003 Jun 2023Nothing published for this version
-
7.2.103 Apr 2023Nothing published for this version
-
7.2.024 Mar 2023Nothing published for this version
-
7.1.028 Feb 2023Nothing published for this version
-
7.0.313 Feb 2023Nothing published for this version
-
7.0.227 Jan 2023Nothing published for this version
-
7.0.124 Jan 2023Nothing published for this version
-
7.0.020 Dec 2022Nothing published for this version
-
6.9.610 Jun 2023Nothing published for this version
-
6.9.527 Jan 2023Nothing published for this version
-
6.9.424 Jan 2023Nothing published for this version
-
6.9.303 Nov 2022Nothing published for this version
-
6.9.217 Oct 2022Nothing published for this version
-
6.9.126 Sep 2022Nothing published for this version
-
6.9.015 Sep 2022Nothing published for this version
-
6.8.020 Aug 2022Nothing published for this version
-
6.7.116 Aug 2022Nothing published for this version
-
6.7.028 Jul 2022Nothing published for this version
-
6.6.112 Jul 2022Nothing published for this version
-
6.6.007 Jul 2022Nothing published for this version
-
6.5.127 Jun 2022Nothing published for this version
-
6.5.021 Jun 2022Nothing published for this version
-
6.4.114 Jun 2022Nothing published for this version
-
6.4.008 Jun 2022Nothing published for this version
-
6.3.106 May 2022Nothing published for this version