PHP code example of lucasruroken / simple-php-timer
1. Go to this page and download the library: Download lucasruroken/simple-php-timer 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/ */
lucasruroken / simple-php-timer example snippets
composer
echo (new Timer())->today();
echo (new Timer())->today()->format('Y-d');
echo (new Timer())->yearsAgo(2)->monthsAgo(2);
echo (new Timer())->years(3)->days(2);
echo Timer::create()->yesterday();