PHPackages                             manford/weatherman - 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. manford/weatherman

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

manford/weatherman
==================

:description

13[2 PRs](https://github.com/manfordbenjamin/weatherman/pulls)PHP

Since Dec 15Pushed 3y agoCompare

[ Source](https://github.com/manfordbenjamin/weatherman)[ Packagist](https://packagist.org/packages/manford/weatherman)[ RSS](/packages/manford-weatherman/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Weatherman
==========

[](#weatherman)

[![Total Downloads](https://camo.githubusercontent.com/9847556b3f0b3f2d6b33725841a71a8464606df6ede48928e438446fab7c43b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e666f72642f776561746865726d616e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/manford/weatherman)

A laravel wrapper for OpenWeather "city only" api

Installation
------------

[](#installation)

You can install this package via composer using this command:

```
$ composer require manford/weatherman
```

The `Manford\Weatherman\WeathermanServiceProvider` is auto-discovered and registered by default.

If you want to register it yourself, add the ServiceProvider in config/app.php:

```
'providers' => [
    /*
     * Package Service Providers...
     */
    Manford\Weatherman\WeathermanServiceProvider::class,
]
```

The `Weather` facade is also auto-discovered.

If you want to add it manually, add the Facade in config/app.php:

```
'aliases' => [
    ...
    'Weather' => Manford\Weatherman\Facades\Weatherman::class,
]
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Manford\Weatherman\WeathermanServiceProvider"
```

This is the contents of the published config file located in `config/weatherman.php`.

```
return [
    'base_url' => env('OPEN_WEATHER_URL'),

    'app_id' => env('OPEN_WEATHER_ID')
];
```

Add and update your .env file with these.

Visit [OpenWeather](https://home.openweathermap.org/api_keys) to get your ID.

```
OPEN_WEATHER_URL=https://api.openweathermap.org/data/2.5/weather
OPEN_WEATHER_ID=

```

Usage
-----

[](#usage)

In your controller:

```
namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Manford\Weatherman\Facades\Weatherman as Weather;

class PageController extends Controller
{
    public function index()
    {
    	$city = Weather::city('accra');

    	return view('welcome', compact('city'));
    }
}
```

Include this view where you need it:

```

    {{ $city->name }} Weather Status

        {{ date("l g:i a", time()) }}
        {{ date("jS F, Y", time()) }}
        {{ ucwords($city->weather[0]->description) }}

         main->temp_max; ?>°C

            {{ $city->main->temp_min }}°C

        Humidity: {{ $city->main->humidity }} %
        Wind: {{ $city->wind->speed }} km/h

```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Benjamin Manford](https://github.com/manford)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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/db5377719e67985104a1598ae97d893fcfbf16fe6d49ed4c66e5ea0bf7401499?d=identicon)[manfordbenjamin](/maintainers/manfordbenjamin)

---

Top Contributors

[![papamarfo](https://avatars.githubusercontent.com/u/6436250?v=4)](https://github.com/papamarfo "papamarfo (11 commits)")

---

Tags

laravelopenweatheropenweatherapiweather

### Embed Badge

![Health badge](/badges/manford-weatherman/health.svg)

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

###  Alternatives

[velhron/dadata-bundle

DaData for Symfony

2076.6k](/packages/velhron-dadata-bundle)[phpcfdi/xml-cancelacion

Genera documentos de cancelación de CFDI firmados (XMLSEC)

1149.5k4](/packages/phpcfdi-xml-cancelacion)[pressbooks/pressbooks-aldine

Aldine is the default theme for the home page of Pressbooks networks. It is named for the Aldine Press, founded by Aldus Manutius in 1494, who is regarded by many as the world’s first publisher.

114.3k](/packages/pressbooks-pressbooks-aldine)

PHPackages © 2026

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