mihaichris/air-quality

🍃 Air Quality API

v0.5.0 2023-08-05 08:59 UTC

This package is auto-updated.

Last update: 2024-10-05 11:27:06 UTC


README

Air Quality

GitHub Workflow Status (master) Codecov Open Issues

Description

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.

🚀 Installation

$ composer require mihaichris/air-quality

Basic Usage

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');

👨‍💻 Author

Mihai-Cristian Făgădău

🤝 Contributing

Contributing details can be found at here.

📝 License

This project is MIT licensed.