mihaichris / air-quality
🍃 Air Quality API
v0.5.0
2023-08-05 08:59 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- infection/infection: ^0.26.21
- laravel/pint: ^1.10
- phpstan/phpstan: ^1.10.13
- phpunit/phpunit: ^10.1
- rector/rector: ^0.15.24
- symfony/var-dumper: ^6.2.8
README
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
- Github: @mihaichris
- LinkedIn: in/mihai-fagadau
- Website: mihaifagadau.dev
🤝 Contributing
Contributing details can be found at here.
📝 License
This project is MIT licensed.