##PHP Class to use Pegelonline Rest-Api For more information see pegelonline.wsv.de
composer require pfitzer/pegelonline
"require": {
"pfitzer/pegelonline": "*"
}
$pgOnline = new Pegelonline();
# get all waters with stations
try {
$result = $pgOnline->getWaters(true);
} catch (\InvalidArgumentException $e) {
# do something
}
feel free to do so
git clone https://github.com/pfitzer/Pegelonline
composer install
phpunit --configuration phpunit.xml