Skip to content

2.2.0

Compare
Choose a tag to compare
@jeromegamez jeromegamez released this 14 Mar 21:25
· 1393 commits to 7.x since this release
2.2.0
f429fdc

Introduces Firebase\Factory to create Firebase instances, and deprecate the previous static instantiation methods on the Firebase class.

It is now possible to omit an explicit JSON credentials file,

  • if one of the following environment variables is set with the path to the credentials file:
    • FIREBASE_CREDENTIALS
    • GOOGLE_APPLICATION_CREDENTIALS
  • or if the file is located at
    • ~/.config/gcloud/application_default_credentials.json (Linux, MacOS)
    • $APPDATA/gcloud/application_default_credentials.json (Windows)

The documentation at http://firebase-php.readthedocs.io has been updated

The following methods have been deprecated and will trigger a deprecation warning when used:

  • Firebase::fromServiceAccount()
  • Firebase::fromDatabaseUriAndSecret()