Download the PHP package spatie/sun without Composer
On this page you can find all versions of the php package spatie/sun. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package sun
Short Description Get information on the position of the sun
License MIT
Homepage https://github.com/spatie/sun
Informations about the package sun
Get information on the position of the sun
This package can determine several things on the position of the sun.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
Usage
When instantiating Spatie\Sun\Sun
you should pass it coordinates.
Get the time of sunrise
You can get the time of the sunrise.
You can get the time of the sunrise on a specific date by passing in instance of Carbon\Carbon
to sunrise
Get the time of zenith
You can get the time of the zenith.
You can get the time of the zenith on a specific date by passing in instance of Carbon\Carbon
to zenith
Get the time of sunset
You can get the time of the sunset.
You can get the time of the sunset on a specific date by passing in instance of Carbon\Carbon
to sunset
Determine if the sun is up
This is how you can determine if the sun is up:
You can get determine if the sun is up at a specific moment by passing in instance of Carbon\Carbon
to sunIsUp
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you've found a bug regarding security please mail [email protected] instead of using the issue tracker.
Credits
- Freek Van der Herten
- All Contributors
License
The MIT License (MIT). Please see License File for more information.