PHP code example of maximnara / business-days-counter
1. Go to this page and download the library: Download maximnara/business-days-counter 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/ */
maximnara / business-days-counter example snippets
"providers" => array(
...,
ShowHeroes\LaravelQueueMonitoring\LaravelQueueMonitoringServiceProvider::class,
)
use maximnara\BusinessDaysCounter\DatesCounter;
public function __construct(DatesCounter $datesCounter)
{
$this->datesCounter = $datesCounter;
}
public function action()
{
$diffInSeconds = $this->datesCounter->getDifferenceInSeconds($date1, $date2, DateCounter::COUNTRY_FR); // Here only Carbon dates.
}