Releases: kreait/firebase-php
7.0.0
The most notable change is that you need PHP 8.1/8.2 to use the new version. The language migration of the SDK introduces breaking changes concerning the strictness of parameter types almost everywhere in the SDK. However, this should not affect your project in most cases (unless you have used internal classes directly or by extension).
This release adds many more PHPDoc annotations to support the usage of Static Analysis Tools like PHPStan and Psalm and moves away from doing runtime checks. It is strongly recommended to use a Static Analysis Tool and ensure that input values are validated before handing them over to the SDK.
Added features
- Added support for verifying Firebase App Check Tokens. (#747)
Notable changes
- The ability to disable credentials auto-discovery has been removed. If you don't want a service account to be auto-discovered, provide it by using the
withServiceAccount()
method of the Factory or by setting theGOOGLE_APPLICATION_CREDENTIALS
environment variable. Depending on the environment in which the SDK is running, credentials could be auto-discovered otherwise, for example, on GCP or GCE.
See UPGRADE-7.0 for more details on the changes between 6.x and 7.0.
6.9.3
Fixed
When no Service Account was provided, custom token were generated with a direct call to the Google Identity Toolkit, which could create invalid token signatures depending on the environment (e.g. GCE). Now, the provided credentials are used to sign custom tokens via the Kreait\Firebase\Auth\CustomTokenViaGoogleCredentials
class. This is an internal class and should not be used directly. (#745)
Deprecated
Kreait\Firebase\Auth\CustomTokenViaGoogleIam
(internal)
6.9.2
6.9.1
Added
- Added
Kreait\Firebase\RemoteConfig\Template::conditionNames()
to return a list of condition names of a Remote Config template - Added
Kreait\Firebase\RemoteConfig\Template::withRemovedCondition(string $name)
to remove a condition from a Remote Config template by name
Fixed
- HTTP Proxy settings were not applied to the Auth Token Handler. Because of this, outgoing, proxied requests couldn't be authenticated, effectively breaking the SDK. (#735)
6.9.0
Added
- Added support for Remote Config Personalization (#731/#733)
- Note: Personalization (currently) can not be added programmatically. The values can only be read and removed from a Remote Config Template. To add Personalization, use the Firebase Web Console.
- Added
Kreait\Firebase\RemoteConfig\Template::withRemovedParameter(string $name)
to remove an existing parameter from a Remote Config Template - Added method
Kreait\Firebase\RemoteConfig\Template::withRemovedParameterGroup(string $name)
to remove an existing parameter group from a Remote Config Template - Added
Kreait\Firebase\RemoteConfig\DefaultValue::useInAppDefault()
Deprecated
Kreait\Firebase\RemoteConfig\DefaultValue::IN_APP_DEFAULT_VALUE
Kreait\Firebase\RemoteConfig\DefaultValue::none()
Kreait\Firebase\RemoteConfig\DefaultValue::value()
6.8.0
Added
Added Auth::queryUsers()
to process subsets of users with more parameters than Auth::listUsers()
. listUsers()
is a fast and memory-efficient way to process a large list of users. queryUsers()
provides sorting and filtering by given fields and pagination. (#727/#728) (Documentation)
6.7.1
6.7.0
Added
- Added support for the Firebase Auth Emulator. (#722) (Documentation)
Changed
- The default HTTP Client options have been updated (#723)
- Connect Timeout from ∞ to 15 seconds
- Timeout from ∞ to 30 seconds