Added
Dynamic Links
-
You can now create Dynamic Links and retrieve statistics for Dynamic Links. (Documentation)
use Kreait\Firebase; $firebaseFactory = new Firebase\Factory(); $dynamicLinksDomain = 'https://example.page.link'; $dynamicLinks = $firebaseFactory->createDynamicLinksService($dynamicLinksDomain); $shortLink = $dynamicLinks->createShortLink('https://domain.tld/some/path'); $stats = $dynamicLinks->getStatistics('https://example.page.link/wXYZ');
Changes
General
-
It is now possible to give the path to a Service Account JSON file directly to the factory instead of having to instantiate a
ServiceAccount
instance beforehand.use Kreait\Firebase; $firebase = (new Firebase\Factory()) ->withServiceAccount('/path/to/google-service-account.json') ->create();
Realtime Database
Kreait\Firebase\Database::getRules()
has been deprecated in favor ofKreait\Firebase\Database::getRuleSet()