Skip to content
/ Rdw Public

Component for the dutch Open Voertuigen Databank

Notifications You must be signed in to change notification settings

amooij/Rdw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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`.

About

Component for the dutch Open Voertuigen Databank

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages