packagist kreait/firebase-php 4.32.0

latest releases: 7.x-dev, 7.11.0, dev-dependabot/github_actions/codecov/codecov-action-4.4.0...
4 years ago

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 of Kreait\Firebase\Database::getRuleSet()

Don't miss a new firebase-php release

NewReleases is sending notifications on new releases.