PHPackages                             thecodingmachine/weatherapi-service-provider - 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. thecodingmachine/weatherapi-service-provider

ActiveLibrary

thecodingmachine/weatherapi-service-provider
============================================

Cross-framework module for thecodingmachine/weatherapi

1.0.x-dev(9y ago)05MITPHPPHP &gt;=7.0

Since Jan 5Pushed 9y ago7 watchersCompare

[ Source](https://github.com/thecodingmachine/weatherapi-service-provider)[ Packagist](https://packagist.org/packages/thecodingmachine/weatherapi-service-provider)[ RSS](/packages/thecodingmachine-weatherapi-service-provider/feed)WikiDiscussions 1.0 Synced 2mo ago

READMEChangelogDependencies (6)Versions (1)Used By (0)

WeatherApi universal module
===========================

[](#weatherapi-universal-module)

This package integrates the WeatherApi demo package in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.

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

[](#installation)

```
composer require thecodingmachine/weatherapi-service-provider

```

Once installed, you need to register the [`TheCodingMachine\WeatherApi\WeatherApiServiceProvider`](src/WeatherApiServiceProvider.php) into your container.

If your container supports Puli integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register *service providers*.

Introduction
------------

[](#introduction)

This service provider is meant to create a `WeatherApi` service in your container. This is part of a [demo for a talk at Paris ForumPHP 2016](https://thecodingmachine.github.io/forumphp2016talk/) and is not meant to be used in production.

Expected values / services
--------------------------

[](#expected-values--services)

This *service provider* expects the following configuration / services to be available:

NameCompulsoryDescription`Http\Client\HttpClient`*yes*A service providing a HTTPlug HttpClient`Psr\Log\LoggerInterface`*yes*A PSR-3 logger`Psr\Cache\CacheItemPoolInterface`*yes*A PSR-6 cache`openWeatherMapApiKey`*yes*An API key from OpenWeatherMap.comProvided services
-----------------

[](#provided-services)

This *service provider* provides the following services:

Service nameDescription`TheCodingMachine\WeatherApi\WeatherApi`The WeatherApi serviceExtended services
-----------------

[](#extended-services)

*None*

Project template courtesy of [thecodingmachine/service-provider-template](https://github.com/thecodingmachine/service-provider-template)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

3415d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

![](https://avatars.githubusercontent.com/u/1847918?v=4)[TheCodingMachine](/maintainers/thecodingmachine)[@thecodingmachine](https://github.com/thecodingmachine)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (6 commits)")

### Embed Badge

![Health badge](/badges/thecodingmachine-weatherapi-service-provider/health.svg)

```
[![Health](https://phpackages.com/badges/thecodingmachine-weatherapi-service-provider/health.svg)](https://phpackages.com/packages/thecodingmachine-weatherapi-service-provider)
```

###  Alternatives

[mnapoli/simplex

Pimple fork with full container-interop support

13123.1k16](/packages/mnapoli-simplex)

PHPackages © 2026

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