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

ActiveMetapackage[API Development](/categories/api)

olek/weather
============

Simple weather API

017PHP

Since Nov 7Pushed 7y agoCompare

[ Source](https://github.com/olekjs/laravel-weather)[ Packagist](https://packagist.org/packages/olek/weather)[ RSS](/packages/olek-weather/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Weather API package to Laravel
==============================

[](#weather-api-package-to-laravel)

A simple weather package for Laravel

### Installation

[](#installation)

Require package by composer

```
composer require olek/weather

```

Service Provider

```
'providers' => [
    ...
    Olekjs\Weather\ServiceProvider::class,
],

```

Facades

```
'aliases' => [
   ...
   'Weather' => Olekjs\Weather\Facade::class,
],

```

Publish config
--------------

[](#publish-config)

```
php artisan vendor:publish --provider=Olekjs\\Weather\\ServiceProvider

```

Package settings
----------------

[](#package-settings)

Set your APPID in .env file

You can find the key on [openweathermap](https://openweathermap.org/) page

```
WEATHER_APP_ID=your_appid

```

### Usage

[](#usage)

```
use Olekjs\Weather\Facade as Weather;

Weather::getByCity('London');
Weather::getByCoords(10,100);

```

### Features

[](#features)

- Add a method that will change the units
- Add more opportunities to find the weather
- Add views for the weather

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d77218306f48d401541a76bbe876c3d14de544c10229fa1db94d4291ec299e7?d=identicon)[olekjs](/maintainers/olekjs)

---

Top Contributors

[![olekjs](https://avatars.githubusercontent.com/u/35314201?v=4)](https://github.com/olekjs "olekjs (3 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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