PHP code example of shakahl / due-php
1. Go to this page and download the library: Download shakahl/due-php 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/ */
shakahl / due-php example snippets
use Shakahl\Due\DueDateCalculator;
$calculator = DueDateCalculator::make();
$calculator->setDayStart(9);
$calculator->setDayEnd(17);
$dueDate = $calculator->calculate('2018-05-11 11:23:42', 7);
echo $dueDate->format('c'); // 2018-05-14T10:23:42+00:00
bash
composer
bash
composer global -05-11 11:23:42" 7