Releases: kreait/firebase-php
Releases · kreait/firebase-php
5.4.0
Added
Kreait\Firebase\Auth::setCustomUserClaims()
as a replacement forKreait\Firebase\Auth::setCustomUserAttributes()
andKreait\Firebase\Auth::deleteCustomUserAttributes()
Kreait\Firebase\Auth\UserRecord::$customClaims
as a replacement forKreait\Firebase\Auth\UserRecord::$customAttributes
Changed
- The default branch of the GitHub repository has been renamed from
master
tomain
- if you're usingdev-master
as a version constraint in yourcomposer.json
, please update it todev-main
.
Deprecated
Kreait\Firebase\Auth::setCustomUserAttributes()
Kreait\Firebase\Auth\UserRecord::$customAttributes
Fixed
- Exceptions thrown by the Messaging component did not include the previous
RequestException
(#428)
5.3.0
In addition to with getenv()
, the SDK now looks for environment variables in $_SERVER
and $_ENV
as well.
5.2.0
It is now possible to retrieve the Firebase User ID directly from a SignInResult
after a successful user sign-in with SignInResult::firebaseUserId()
5.1.1
5.1.0
4.44.0
5.0.0
If you are not using any classes or methods marked as @deprecated
or @internal
you should be able to upgrade from a 4.x release to 5.0 without changes to your code.
- Dropped support for unsupported PHP versions. Supported PHP versions are
7.2
,7.3
and7.4
. - Removed deprecated methods and classes.
4.43.0
Added
Kreait\Firebase\Auth::parseToken(string $tokenString): Token
Kreait\Firebase\Auth::signInWithEmailAndOobCode($email, $oobCode): SignInResult
4.42.1
Fixed the FIREBASE_CREDENTIALS
environment variable not being picked up when determining the authentication credentials.
4.42.0
- User records now include the password salt and tenant ID, if available
- Reworked credentials auto-discovery to use the discovery already provided by Google's libraries, deprecating the previous auto-discovery methods. It is still possible to disable auto-discovery.
- Passing custom HTTP Client options and middlewares has been deprecated. The SDK already reacts to errors and customizations might lead to unexpected behavior.
- If you want to debug HTTP requests, add
->withEnabledDebug()
to the Factory configuration chain. (Documentation) - If you need to configure a proxy, use
->withHttpProxy($proxy)
. (Documentation)
Added
Kreait\Firebase\Factory::withProjectId(string $projectId): self
Kreait\Firebase\Factory::withClientEmail(string $clientEmail): self
Kreait\Firebase\Factory::withEnabledDebug(): self
Kreait\Firebase\Factory::withHttpProxy(string $proxy): self
Deprecations
Kreait\Firebase\Factory::withHttpClientConfig()
Kreait\Firebase\Factory::withHttpClientMiddlewares()
Kreait\Firebase\ServiceAccount::discover()
Kreait\Firebase\ServiceAccount::fromArray()
Kreait\Firebase\ServiceAccount::fromJson()
Kreait\Firebase\ServiceAccount::fromJsonFile()
Kreait\Firebase\ServiceAccount::getClientId()
Kreait\Firebase\ServiceAccount::getFilePath()
Kreait\Firebase\ServiceAccount::getSanitizedProjectId()
Kreait\Firebase\ServiceAccount::hasClientId()
Kreait\Firebase\ServiceAccount::hasPrivateKey()
Kreait\Firebase\ServiceAccount::withClientEmail()
Kreait\Firebase\ServiceAccount::withClientId()
Kreait\Firebase\ServiceAccount::withPrivateKey()
Kreait\Firebase\ServiceAccount::withProjectId()
Kreait\Firebase\ServiceAccount::withProjectIdAndServiceAccountId()
Kreait\Firebase\ServiceAccount\Discoverer
Kreait\Firebase\ServiceAccount\Discovery\FromEnvironmentVariable
Kreait\Firebase\ServiceAccount\Discovery\FromGoogleWellKnownFile
Kreait\Firebase\ServiceAccount\Discovery\FromPath
Kreait\Firebase\ServiceAccount\Discovery\OnGoogleCloudPlatform