{"id":18929666,"url":"https://github.com/thecodingmachine/weatherapi-service-provider","last_synced_at":"2026-03-16T15:30:18.912Z","repository":{"id":57067887,"uuid":"71468394","full_name":"thecodingmachine/weatherapi-service-provider","owner":"thecodingmachine","description":"Cross-framework module for thecodingmachine/weatherapi","archived":false,"fork":false,"pushed_at":"2017-01-05T21:30:34.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"1.0","last_synced_at":"2025-02-16T12:30:31.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-20T13:54:37.000Z","updated_at":"2016-10-20T13:56:37.000Z","dependencies_parsed_at":"2022-08-24T14:54:08.175Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/weatherapi-service-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fweatherapi-service-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fweatherapi-service-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fweatherapi-service-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fweatherapi-service-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/weatherapi-service-provider/tar.gz/refs/heads/1.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239927825,"owners_count":19719835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:34:14.877Z","updated_at":"2026-03-16T15:30:18.880Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WeatherApi universal module\n\nThis package integrates the WeatherApi demo package in any [container-interop](https://github.com/container-interop/service-provider) compatible framework/container.\n\n## Installation\n\n```\ncomposer require thecodingmachine/weatherapi-service-provider\n```\n\nOnce installed, you need to register the [`TheCodingMachine\\WeatherApi\\WeatherApiServiceProvider`](src/WeatherApiServiceProvider.php) into your container.\n\nIf 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*.\n\n## Introduction\n\nThis service provider is meant to create a `WeatherApi` service in your container.\nThis 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.\n\n## Expected values / services\n\nThis *service provider* expects the following configuration / services to be available:\n\n| Name                        | Compulsory | Description                            |\n|-----------------------------|------------|----------------------------------------|\n| `Http\\Client\\HttpClient`       | *yes*       | A service providing a HTTPlug HttpClient  |\n| `Psr\\Log\\LoggerInterface`       | *yes*       | A PSR-3 logger  |\n| `Psr\\Cache\\CacheItemPoolInterface`       | *yes*       | A PSR-6 cache  |\n| `openWeatherMapApiKey`       | *yes*       | An API key from OpenWeatherMap.com  |\n\n\n## Provided services\n\nThis *service provider* provides the following services:\n\n| Service name                | Description                          |\n|-----------------------------|--------------------------------------|\n| `TheCodingMachine\\WeatherApi\\WeatherApi`              | The WeatherApi service  |\n\n## Extended services\n\n*None*\n\n\u003csmall\u003eProject template courtesy of \u003ca href=\"https://github.com/thecodingmachine/service-provider-template\"\u003ethecodingmachine/service-provider-template\u003c/a\u003e\u003c/small\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fweatherapi-service-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fweatherapi-service-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fweatherapi-service-provider/lists"}