amooij/rdw

This component provides classes to retrieve data from the RDW

Maintainers

Details

github.com/amooij/Rdw

Homepage

Source

Installs: 54

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 3

Type:component

v3.3 2017-08-01 15:05 UTC

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