Cross-framework module for thecodingmachine/weatherapi
This package is auto-updated.
Last update: 2021-04-06 16:19:35 UTC
This package integrates the WeatherApi demo package in any container-interop compatible framework/container.
composer require thecodingmachine/weatherapi-service-provider
Once installed, you need to register the
TheCodingMachine\WeatherApi\WeatherApiServiceProvider 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.
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 and is not meant to be used in production.
This service provider expects the following configuration / services to be available:
||yes||A service providing a HTTPlug HttpClient|
||yes||A PSR-3 logger|
||yes||A PSR-6 cache|
||yes||An API key from OpenWeatherMap.com|
This service provider provides the following services:
||The WeatherApi service|
Project template courtesy of thecodingmachine/service-provider-template