amooij / rdw
This component provides classes to retrieve data from the RDW
v3.3
2017-08-01 15:05 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2024-11-20 02:07:08 UTC
README
This component provides classes to retrieve data from the RDW
Installation
Add the component to your composer.json
file:
require: { // ... "amooij/rdw": "3.*" // ... }
Then run a composer update:
composer.phar update # OR composer.phar update amooij/rdw # to only update the component
Usage
Service
howto
$kentekenRepository = new Nettob\Component\Rdw\Repository\KentekenRepository();
$assenRepository = new Nettob\Component\Rdw\Repository\AssenRepository();
$brandstofRepository = new Nettob\Component\Rdw\Repository\BrandstofRepository();
$carosserieRepository = new Nettob\Component\Rdw\Repository\CarrosserieRepository();
$carosserieSpecifiekRepository = new Nettob\Component\Rdw\Repository\CarrosserieSpecifiekRepository();
$voertuigklasseRepository = new Nettob\Component\Rdw\Repository\VoertuigklasseRepository();
$kentekenNummer = '';
$kenteken = $kentekenRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($kenteken);
echo '</pre>';
$assen = $assenRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($assen);
echo '</pre>';
$assen = $brandstofRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($assen);
echo '</pre>';
$assen = $carosserieRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($assen);
echo '</pre>';
$assen = $carosserieSpecifiekRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($assen);
echo '</pre>';
$assen = $voertuigklasseRepository->findOneBy('kenteken', $kentekenNummer);
echo '<pre>';
var_dump($assen);
echo '</pre>';
```
## Api
The data set is avalible on the opendata.rdw.nl, named `Open Data RDW: Gekentekende_voertuigen`.