PHPackages                             fu-hsi/open-weather-map - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fu-hsi/open-weather-map

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fu-hsi/open-weather-map
=======================

OpenWeatherMap Class

07PHP

Since Jan 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/fu-hsi/open-weather-map)[ Packagist](https://packagist.org/packages/fu-hsi/open-weather-map)[ RSS](/packages/fu-hsi-open-weather-map/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

OpenWeatherMap
==============

[](#openweathermap)

Simple class for retrieve current weather.

Usage
-----

[](#usage)

```

```

Retrieve weather by City name:

```
$weatherData = $weather->getCurrentWeatherByCityName('Warsaw');
```

Retrieve weather by City name and Country code:

```
$weatherData = $weather->getCurrentWeatherByCityName('Warsaw,pl');
```

Retrieve weather by City id (recommended):

```
$weatherData = $weather->getCurrentWeatherByCityName(756135);
```

Retrieve image:

```
echo '';
```

Install via Composer
--------------------

[](#install-via-composer)

```
{
    "require": {
        "fu-hsi/open-weather-map": "dev-master"
    },
    "minimum-stability": "dev"
}

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9624446?v=4)[fu-hsi](/maintainers/fu-hsi)[@fu-hsi](https://github.com/fu-hsi)

### Embed Badge

![Health badge](/badges/fu-hsi-open-weather-map/health.svg)

```
[![Health](https://phpackages.com/badges/fu-hsi-open-weather-map/health.svg)](https://phpackages.com/packages/fu-hsi-open-weather-map)
```

PHPackages © 2026

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