PHPackages                             digicraft/laravel-airvisual - 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. digicraft/laravel-airvisual

ActiveLibrary[API Development](/categories/api)

digicraft/laravel-airvisual
===========================

Easy client for AirVisual API

0.3.0(6y ago)037MITPHPPHP &gt;=7.1.3

Since Mar 3Pushed 6y agoCompare

[ Source](https://github.com/digicraft/laravel-airvisual)[ Packagist](https://packagist.org/packages/digicraft/laravel-airvisual)[ Docs](https://github.com/digicraft/laravel-airvisual)[ RSS](/packages/digicraft-laravel-airvisual/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Laravel AirVisual
=================

[](#laravel-airvisual)

AirVisual is a platform to explore the air quality anywhere in the world

Laravel AirVisual is a API Client configured for "Plug and play"

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

[](#installation)

Install the package with Composer:

```
composer require digicraft/laravel-airvisual

```

Now you can add directly to your `.env` file the `AIR_VISUAL_API_KEY` value, setting up your platform api key.

Otherwise you can setup the airvisual config file

```
php artisan vendor:publish --tag=config

```

Usage
-----

[](#usage)

AirVisualClient has a easy access static Repository.

```
use Digicraft\AirVisualRepository;

// Get Countries are supported by AirVisual API
AirVisualRepository::getSupportedCountries();

// Get States of given country supported by AirVisual API
AirVisualRepository::getSupportedStates($country);

// Get Cities supported by AirVisual API giving a country and state param
AirVisualRepository::getSupportedCities($country, $state);

// Get nearest city data (GPS coordinates)
AirVisualRepository::getNearestCityData($lat, $long);

// Get nearest city data (IP)
AirVisualRepository::getNearestIpCityData($ip);

// Get specified city data
AirVisualRepository::getCityData($country, $state, $city);
```

License
-------

[](#license)

AirVisualClient is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

2261d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ac1b9c176df8f8b0452a5e5617146027229c9a78d2e0c68942d3f564cb8215a?d=identicon)[digicraft](/maintainers/digicraft)

---

Top Contributors

[![edpmath](https://avatars.githubusercontent.com/u/58669247?v=4)](https://github.com/edpmath "edpmath (7 commits)")

---

Tags

apilaravelairairvision

### Embed Badge

![Health badge](/badges/digicraft-laravel-airvisual/health.svg)

```
[![Health](https://phpackages.com/badges/digicraft-laravel-airvisual/health.svg)](https://phpackages.com/packages/digicraft-laravel-airvisual)
```

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
