algn / weather
Test
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:HTML
pkg:composer/algn/weather
Requires (Dev)
- php: ^7.2
- phpunit/phpunit: ^7
README
Usage
Require the file via the namespace algn/DarkSky and createa new instance of the class by passing your api key in the constructor.
You can use the following methods to retrieve data from dark sky.
today() - Returns weather data from today
week() - Returns weather data from today and a week ahead
past30Days() - Returns data from the past month