PHP code example of jaybizzle / php-seasons
1. Go to this page and download the library: Download jaybizzle/php-seasons 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/ */
jaybizzle / php-seasons example snippets
use Jaybizzle\Seasons;
$season = new Seasons;
// Get season from date
$season->get('1st June');
// Output: Summer
// Get current season
$season->get();