PHP code example of iliakondrashov / inmotiv-sdk-php

1. Go to this page and download the library: Download iliakondrashov/inmotiv-sdk-php 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/ */

    

iliakondrashov / inmotiv-sdk-php example snippets


$endpointProvider = new ProductionEndpointProvider();
$xmlBuilder = new XmlBuilder();
$client = new InMotivClient(
    $endpointProvider,
    $xmlBuilder,
    111111,
    'rdc111111999',
    'xxxXXXxxx'
);
var_dump($client->isDriverLicenceValid('1111111111', 1990, 1, 1));

$client = new InMotivClient(
    $endpointProvider,
    $xmlBuilder,
    111111,
    'rdc111111999',
    'xxxXXXxxx',
    true
);