PHPackages                             azuyalabs/waqi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. azuyalabs/waqi

ActiveLibrary[API Development](/categories/api)

azuyalabs/waqi
==============

Simple PHP Wrapper for the World Air Quality Index API

1.2.1(2y ago)2423.1k2MITPHPPHP ^8.2CI failing

Since Feb 15Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/azuyalabs/waqi)[ Packagist](https://packagist.org/packages/azuyalabs/waqi)[ Docs](https://github.com/azuyalabs/waqi)[ Fund](https://www.buymeacoffee.com/sachatelgenhof)[ RSS](/packages/azuyalabs-waqi/feed)WikiDiscussions develop Synced 3w ago

READMEChangelog (5)Dependencies (8)Versions (8)Used By (0)

[![GitHub Release](https://camo.githubusercontent.com/b3e31754c30a87bea4f804035f22b4abfb675ba7467411bd72ee1c24a2dc3a8b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617a7579616c6162732f776171692e7376673f7374796c653d666c61742d737175617265)](https://github.com/azuyalabs/waqi/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![CodeCheck](https://github.com/azuyalabs/waqi/workflows/Validate/badge.svg)](https://github.com/azuyalabs/waqi/actions)

PHP WAQI
========

[](#php-waqi)

Simple PHP Wrapper for the World Air Quality Index API

Introduction
------------

[](#introduction)

The [World Air Quality Index](http://waqi.info) project is an initiative to map the current and real-time air quality around the globe. The Air Quality indexes are based on PM2.5, PM10, Ozone, NO2, SO2 and CO hourly measurements provided by various monitoring stations in the world.

This package makes it easy to retrieve the Air Quality Index for your area and is based on the real-time Air Quality data feed (API) of the WAQI project.

Note: To make use of this package (and the underlying AQI API) an access token is required. You can acquire your token here: [https://aqicn.org/data-platform/token](https://aqicn.org/data-platform/tokeni).

System Requirements
-------------------

[](#system-requirements)

You need *PHP &gt;= 8.2* to use `azuyalabs/waqi`.

Installation
------------

[](#installation)

You can pull in this package via composer:

```
composer require azuyalabs/waqi
```

Usage
-----

[](#usage)

Start by including the Composer `autoload` file in your project:

```
