PHP code example of amooij / rdw

1. Go to this page and download the library: Download amooij/rdw library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

amooij / rdw example snippets


    $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>';