Download the PHP package mathsgod/hko-weather without Composer
On this page you can find all versions of the php package mathsgod/hko-weather. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mathsgod/hko-weather
More information about mathsgod/hko-weather
Files in mathsgod/hko-weather
Download mathsgod/hko-weather
More information about mathsgod/hko-weather
Files in mathsgod/hko-weather
Vendor mathsgod
Package hko-weather
Short Description Hong Kong Observatory weather forecast data fetcher
License MIT
Package hko-weather
Short Description Hong Kong Observatory weather forecast data fetcher
License MIT
Please rate this library. Is it a good library?
Informations about the package hko-weather
hko-weather
A PHP library for fetching Hong Kong weather forecast data from the Hong Kong Observatory Open Data API.
Requirements
- PHP >= 8.0
- Composer
Installation
Usage
Return format
Each entry in the returned array contains:
| Key | Description |
|---|---|
date |
Date in YYYY-MM-DD format |
low |
Minimum temperature |
high |
Maximum temperature |
unit |
Temperature unit (e.g. C) |
forecastWind |
Wind description |
forecastWeather |
Weather description |
forecastIcon |
Weather icon code |
forecastIconUrl |
Weather icon image URL (PNG) |
Returns 9 days of forecast data.
Example output
Testing
License
MIT
All versions of hko-weather with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package mathsgod/hko-weather contains the following files
Loading the files please wait ...