PHP code example of tumblr / chorus-timekeeper
1. Go to this page and download the library: Download tumblr/chorus-timekeeper library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tumblr / chorus-timekeeper example snippets
// Using the real TimeKeeper
$timekeeper = new Tumblr\Chorus\TimeKeeper();
echo $timekeeper->getCurrentUnixTime(); // Outputs the current unix epoch time.
// Using the FakeTimeKeeper
$fakeTimeKeeper = new Tumblr\Chorus\FakeTimeKeeper(1628700000); // Set a specific unix time.
echo $fakeTimeKeeper->getCurrentUnixTime(); // Outputs 1628700000.
bash
make report-php-location