mihaichris/air-quality

🍃 空气质量 API

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

This package is auto-updated.

Last update: 2024-09-05 11:19:21 UTC


README

Air Quality

GitHub Workflow Status (master) Codecov Open Issues

描述

Air-quality 允许您根据特定坐标从地区检索不同污染物和花粉的值 🍃。该库由 OpenMeteo 空气质量 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

🤝 贡献

贡献细节请见 此处

📝 许可证

本项目采用 MIT 许可证。