PHPackages                             destcable/weather-php - 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. destcable/weather-php

ActiveLibrary

destcable/weather-php
=====================

WeatherPHP: Powerful library for integrating weather data. Get up-to-date weather information with ease, query a variety of weather sources, and integrate forecasts and weather data into your web applications with minimal effort.

v1.1.6(2y ago)0241MITPHPPHP &gt;=7.4

Since Aug 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Destcable/WeatherPHP)[ Packagist](https://packagist.org/packages/destcable/weather-php)[ RSS](/packages/destcable-weather-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

WeatherPHP
==========

[](#weatherphp)

Usage
-----

[](#usage)

To work with the library, you need to register on the platform, after which you will receive an authorization key (it is free), and insert this key during initialization as shown in the example.

```
use WeatherPHP\Weather;

$weather = new Weather( apiKey: 'you_api_key');

$weather->language = 'ru';

$weather->find(
    city: 'San Francisco'
);

$weather->getTemperature();
```

Getting the weather in time difference, the maximum amount in days that can be obtained +5 from the current date.

```
use WeatherPHP\Weather;

$weather = new Weather( apiKey: 'you_api_key');

$weather->getDaysTemperature(
    city: 'Москва',
    days: 5
);
```

Planning an event and up to 5 days, if the event is large for 5 days (an error will occur, because at the moment working with the scheduler for more than 5 days is not provided).

```
use WeatherPHP\Weather;

$event = new Event(
    name: 'Playing football with friends',
    city: 'Moscow',
    date: '2023-08-30 12:00',
    expectedWeather: 'Sunny'
);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

9

Last Release

993d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a99c94352350e22d6c63be4604988f4d731a76e58c32b203bf1b19184fa97dfe?d=identicon)[Destcable](/maintainers/Destcable)

---

Top Contributors

[![Destcable](https://avatars.githubusercontent.com/u/99603968?v=4)](https://github.com/Destcable "Destcable (2 commits)")

### Embed Badge

![Health badge](/badges/destcable-weather-php/health.svg)

```
[![Health](https://phpackages.com/badges/destcable-weather-php/health.svg)](https://phpackages.com/packages/destcable-weather-php)
```

PHPackages © 2026

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