PHPackages                             mohsin/awhere-api-client - 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. mohsin/awhere-api-client

ActiveLibrary[API Development](/categories/api)

mohsin/awhere-api-client
========================

Unofficial PHP client for aWhere weather API

v1.0.0(5y ago)01141MITPHP

Since Sep 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SaifurRahmanMohsin/awhere-api-client)[ Packagist](https://packagist.org/packages/mohsin/awhere-api-client)[ Docs](https://github.com/SaifurRahmanMohsin/awhere-api-client)[ RSS](/packages/mohsin-awhere-api-client/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

[PHP client library for aWhere weather API](https://docs.awhere.com)
====================================================================

[](#php-client-library-for-awhere-weather-api)

Introduction
============

[](#introduction)

This is an API client library for the [aWhere weather APIs](https://docs.awhere.com/knowledge-base-docs/api-reference/).

### Usage

[](#usage)

The first step is setting up an API client and fetching a fresh token:

```
$client = new aWhere\Client($clientId, $clientSecret);
$token = $client->getToken();
```

You may cache/save the token and pass it as the 3rd paramter to the client to re-use it (You can use `isTokenValid()` method to determine usability of the passed token).

Next, you may call the relevant API to fetch the data. In this initial release, I have only added the **Forecast Weather by Geolocation** API node for now (and only the basic usage without startDate/endDate). I will add more API nodes in upcoming versions of this library.

```
$client->getWeatherForecastByGeolocation($latitude, $longitude, $options);
```

`$options` corresponds to [the query string parameters](https://docs.awhere.com/knowledge-base-docs/forecast-weather-by-geolocation/#4-query-string-parameters) specified in the documentation. For example,

```
$options = [
  'limit' => 15,
  'blockSize' => 12,
  'conditionsType' => 'basic',
  'useLocalTime' => true
];
```

### Contributing

[](#contributing)

Feel free to make PRs in case you want to update this library with more API nodes.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2073d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1699753?v=4)[Saifur Rahman Mohsin](/maintainers/mohsin)[@mohsin](https://github.com/mohsin)

---

Top Contributors

[![mohsin](https://avatars.githubusercontent.com/u/1699753?v=4)](https://github.com/mohsin "mohsin (1 commits)")

---

Tags

hacktoberfestapisdkweatheraWhere

### Embed Badge

![Health badge](/badges/mohsin-awhere-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/mohsin-awhere-api-client/health.svg)](https://phpackages.com/packages/mohsin-awhere-api-client)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[bynder/bynder-php-sdk

Bynder PHP Library

171.1M3](/packages/bynder-bynder-php-sdk)[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7648.2k](/packages/rakibdevs-openweather-laravel-api)

PHPackages © 2026

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