swisnl / pdok-geodatastore-api
A client for the PDOK Geodatastore API.
Requires
- php: ^7.0
- php-http/client-common: ^1.6
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.3
- php-http/httplug: ^1.1
- php-http/multipart-stream-builder: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- guzzlehttp/psr7: ^1.2
- php-http/guzzle6-adapter: ^1.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2022-02-01 13:10:58 UTC
README
A simple Object Oriented wrapper for PDOK Geodatastore API, written in PHP7. Uses PDOK Geodatastore API v1.
⚠️ Out of service ⚠️
PDOK Geodatastore and its API have been taken out of service as of January 2019, therefore this package no longer works!
Features
- Follows PSR-4 conventions and coding standard: autoload friendly
- Light and fast thanks to lazy loading of API classes
Requirements
- PHP >= 7.0
- Guzzle library,
- (optional) PHPUnit to run tests.
Install
Via Composer
$ composer require swisnl/pdok-geodatastore-api php-http/guzzle6-adapter
Why php-http/guzzle6-adapter
? We are decoupled from any HTTP messaging client with help by HTTPlug.
Usage
$client = new \Swis\PdokGeodatastoreApi\Client(); $client->authenticate('username', 'password'); $datasets = $client->datasets()->all();
From $client
object, you can access all features.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email security@swis.nl instead of using the issue tracker.
Credits
Heavily inspired by PHP GitHub API.
License
The MIT License (MIT). Please see License File for more information.
SWIS
SWIS is a web agency from Leiden, the Netherlands. We love working with open source software.