PHP code example of adcuz / seasonizr
1. Go to this page and download the library: Download adcuz/seasonizr 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/ */
adcuz / seasonizr example snippets
use Adcuz\Seasonizr\Conversion;
$conversion = new Conversion();
// Season based on current date
$conversion->country('GB');
// June 2nd 2018
$date = (new \DateTime())->setDate(2018, 6, 2);
$conversion->country('GB', $date);