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']);