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. [API Development](/categories/api)
4. /
5. destcable/weather-php

ActiveLibrary[API Development](/categories/api)

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)1241MITPHPPHP &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 today

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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

1039d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99603968?v=4)[Artem Pavlov](/maintainers/Destcable)[@Destcable](https://github.com/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)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k12](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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