pfitzer / pegelonline
Library to use REST data from www.pegelonline.wsv.de
0.3
2016-11-16 10:33 UTC
Requires
- php: >=5.6.0
- ext-curl: *
- othercode/rest: ^1.2
Requires (Dev)
- phpdocumentor/phpdocumentor: 2.*
- phpmd/phpmd: @stable
- phpunit/phpunit: *
This package is auto-updated.
Last update: 2025-01-18 04:46:23 UTC
README
##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