2017 © Pedro Peláez
 

library weatherapi-service-provider

Cross-framework module for thecodingmachine/weatherapi

image

thecodingmachine/weatherapi-service-provider

Cross-framework module for thecodingmachine/weatherapi

  • Thursday, January 5, 2017
  • by mouf
  • Repository
  • 7 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WeatherApi universal module

This package integrates the WeatherApi demo package in any container-interop compatible framework/container., (*1)

Installation

composer require thecodingmachine/weatherapi-service-provider

Once installed, you need to register the TheCodingMachine\WeatherApi\WeatherApiServiceProvider into your container., (*2)

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., (*3)

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 and is not meant to be used in production., (*4)

Expected values / services

This service provider expects the following configuration / services to be available:, (*5)

Name Compulsory Description
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.com

Provided services

This service provider provides the following services:, (*6)

Service name Description
TheCodingMachine\WeatherApi\WeatherApi The WeatherApi service

Extended services

None, (*7)

Project template courtesy of thecodingmachine/service-provider-template, (*8)

The Versions

05/01 2017

1.0.x-dev

1.0.9999999.9999999-dev

Cross-framework module for thecodingmachine/weatherapi

  Sources   Download

MIT

The Requires

 

The Development Requires