PHP code example of minasm / carbon-uk
1. Go to this page and download the library: Download minasm/carbon-uk 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/ */
minasm / carbon-uk example snippets
use Minasm\Carbon;
$startDate = '01/03/2023';
$endDate = '31/03/2023';
$businessDays = (new Carbon())->getBusinessDays($startDate, $endDate);
echo "There are {$businessDays} business days between {$startDate} and {$endDate}";
There are 23 business days between 01/03/2023 and 31/03/2023.