ivan-petrunko / weather-entities
PHP weather entities.
1.0.0
2020-08-15 02:04 UTC
Requires
- php: ^7.4
This package is auto-updated.
Last update: 2025-04-18 03:09:14 UTC
README
Installation
It's recommended that you use Composer to install PHP Weather Entities.
$ composer require ivan-petrunko/weather-entities
Petrunko\Weather\Entity\Weather
Contains snapshot of a weather:
- condition (see
Petrunko\Weather\Entity\Enum\Condition
) - temperature range
- temperature "feels like" range
- wind direction (see
Petrunko\Weather\Entity\Enum\WindDirection
) - wind speed
- pressure
- humidity
Petrunko\Weather\Entity\WeatherDaily
Contains weather for a whole day (morning, day, evening & night).
P.S.
Feel free to use it however you want :)
Pull requests are welcome.