PHPackages                             ricbra/knmi-client - 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. [API Development](/categories/api)
4. /
5. ricbra/knmi-client

ActiveLibrary[API Development](/categories/api)

ricbra/knmi-client
==================

0.0.1(9y ago)18732MITPHPPHP &gt;=7.0CI failing

Since Nov 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ricbra/knmi-client)[ Packagist](https://packagist.org/packages/ricbra/knmi-client)[ RSS](/packages/ricbra-knmi-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (10)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/76321759da9743b24e3415cf67557116dada7eac53a62a1017329a32ac80a939/68747470733a2f2f706f7365722e707567782e6f72672f7269636272612f6b6e6d692d636c69656e742f762f737461626c65)](https://packagist.org/packages/ricbra/knmi-client)[![Build status](https://camo.githubusercontent.com/e2eabe8d6583a363267805440bf2cb262fddb0ba045071b0273a4734e15a8957/68747470733a2f2f7472617669732d63692e6f72672f7269636272612f6b6e6d692d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ricbra/knmi-client)

KNMI client
===========

[](#knmi-client)

This repository contains a very simplistic PHP client for the KNMI [hourly](https://www.daggegevens.knmi.nl/klimatologie/uurgegevens)and [daily](https://www.daggegevens.knmi.nl/klimatologie/daggegevens) endpoints. The response from KNMI is rather unsuable and this client returns a nice formatted array. Not the best you can get, but better than the original.

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

[](#installation)

Since we're using [php-http](http://docs.php-http.org/en/latest/) you're free to choose your own HTTP client library. For more information on how to pick your favourite client see [the docs](http://docs.php-http.org/en/latest/httplug/users.html).

Installation using latest Guzzle:

```
$ composer require php-http/guzzle6-adapter ricbra/knmi-client guzzlehttp/psr7 php-http/message

```

If you don't specify any php-http adapter Composer will complain:

```
$ composer require ricbra/knmi-client
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - ricbra/knmi-client 1.0.x-dev requires php-http/client-implementation ^1.0 -> no matching package found.
    - ricbra/knmi-client dev-master requires php-http/client-implementation ^1.0 -> no matching package found.
    - Installation request for ricbra/knmi-client @dev -> satisfiable by ricbra/knmi-client[dev-master, 1.0.x-dev].

```

Usage
-----

[](#usage)

```
