packagist kreait/firebase-php 2.0.2

latest releases: 7.x-dev, dev-dependabot/github_actions/codecov/codecov-action-5.0.2, 7.16.0...
7 years ago

Added a SERVER_TIMESTAMP constant to the Firebase\Database class to ease the population of fields with Firebase's timestamp server value

use Firebase\Database;

$ref = $db->getReference('my-ref')
          ->set('created_at', Database::SERVER_TIMESTAMP); 

is equivalent to

$ref = $db->getReference('posts/my-post')
          ->set('created_at', ['.sv' => 'timestamp']);

Don't miss a new firebase-php release

NewReleases is sending notifications on new releases.