packagist kreait/firebase-php 7.0.0

latest releases: 7.x-dev, dev-remove-reliance-on-the-cloud-message-class, 7.15.0...
21 months ago

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 the GOOGLE_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.

Don't miss a new firebase-php release

NewReleases is sending notifications on new releases.