Skip to content

Repository files navigation

Seasonal

Seasonal is a library to detect the current season (summer, winter, fall..etc). It also detects if you are in the southern or northern hemisphere and adjusts the date ranges accordingly.

Install

Via Composer

$ composer require letsgolearn/seasonal

Usage

    $location = new Location(new GeoIp, new SeasonalDateRanges);
    $seasonal = new Seasonal($location);
    
    $seasonal->get(); // => WINTER

Testing

$ phpunit

Security

If you discover any security related issues, please email ryan@letsgolearn.com instead of using the issue tracker.

Authors

License

The MIT License (MIT). Please see License File for more information.

About

A package to determine the current season

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages