Skip to content

Releases: kreait/firebase-php

5.4.0

09 Jun 08:48
5.4.0
316bca4
Compare
Choose a tag to compare

Added

  • Kreait\Firebase\Auth::setCustomUserClaims() as a replacement for Kreait\Firebase\Auth::setCustomUserAttributes() and Kreait\Firebase\Auth::deleteCustomUserAttributes()
  • Kreait\Firebase\Auth\UserRecord::$customClaims as a replacement for Kreait\Firebase\Auth\UserRecord::$customAttributes

Changed

  • The default branch of the GitHub repository has been renamed from master to main - if you're using dev-master as a version constraint in your composer.json, please update it to dev-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

27 May 14:27
5.3.0
88943c3
Compare
Choose a tag to compare

In addition to with getenv(), the SDK now looks for environment variables in $_SERVER and $_ENV as well.

5.2.0

03 May 15:58
5.2.0
6b5eff9
Compare
Choose a tag to compare

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

16 Apr 14:47
5.1.1
ec99153
Compare
Choose a tag to compare

Custom Token Generation was not possible with an auto-discovered Service Account (#412)

5.1.0

05 Apr 22:07
5.1.0
69f0682
Compare
Choose a tag to compare

Fetched authentication tokens (to authenticate requests to the Firebase API) are now cached in-memory by default (#404).

4.44.0

05 Apr 22:07
4.44.0
61264ed
Compare
Choose a tag to compare

Fetched authentication tokens (to authenticate requests to the Firebase API) are now cached in-memory by default (#404).

5.0.0

01 Apr 15:08
5.0.0
cfee3f1
Compare
Choose a tag to compare

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 and 7.4.
  • Removed deprecated methods and classes.

4.43.0

31 Mar 21:12
4.43.0
bfc58e4
Compare
Choose a tag to compare

Added

  • Kreait\Firebase\Auth::parseToken(string $tokenString): Token
  • Kreait\Firebase\Auth::signInWithEmailAndOobCode($email, $oobCode): SignInResult

4.42.1

31 Mar 15:28
4.42.1
020d6b8
Compare
Choose a tag to compare

Fixed the FIREBASE_CREDENTIALS environment variable not being picked up when determining the authentication credentials.

4.42.0

30 Mar 17:53
4.42.0
74f3091
Compare
Choose a tag to compare
  • 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