Air-quality allows you to retrieve the values for different pollutants and pollen from a region based on specific coordinates π. The library is powered by OpenMeteo air quality API.
$ composer require mihaichris/air-quality
use Air\Quality\AirQuality;
//Getting the air quality from Bucharest.
$airQuality = new AirQuality(44.43, 26.11);
//Get the air quality now.
$airQuality->getNow();
//Get the air quality in the past days.
$airQuality->getPast(2);
//Get the air quality between specific dates.
$airQuality->getBetweenDates('2023-01-01', '2023-02-01');
Mihai-Cristian FΔgΔdΔu
- Github: @mihaichris
- LinkedIn: in/mihai-fagadau
- Website: mihaifagadau.dev
Contributing details can be found at here.
This project is MIT licensed.