pfitzer/pegelonline

Library to use REST data from www.pegelonline.wsv.de

0.3 2016-11-16 10:33 UTC

This package is auto-updated.

Last update: 2024-04-18 03:16:49 UTC


README

Build Status codecov

##PHP Class to use Pegelonline Rest-Api For more information see pegelonline.wsv.de

install

composer require pfitzer/pegelonline

"require": {
    "pfitzer/pegelonline": "*"
}

usage

$pgOnline = new Pegelonline();

# get all waters with stations
try {
    $result = $pgOnline->getWaters(true);
} catch (\InvalidArgumentException $e) {
    # do something
}

contribute

feel free to do so

git clone https://github.com/pfitzer/Pegelonline

install dev dependencies

composer install

run unit tests

phpunit --configuration phpunit.xml