2017 © Pedro Peláez
 

library inmotiv-sdk-php

InMotiv RDC SOAP PHP client

image

iliakondrashov/inmotiv-sdk-php

InMotiv RDC SOAP PHP client

  • Saturday, February 17, 2018
  • by caseycs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3,051 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

InMotiv RDC SOAP PHP client

Build Status, (*1)

InMotiv (https://www.rdc.nl/) is one of the official RDW partners. It provides SOAP endpoints to access RDW database. For example you can check whether driver licence is valid or not by number and owner birthday., (*2)

Requirements

  • PHP 7.1
  • SOAP extension

How to use

Fill your InMotiv credentials and driver license details in the code below:, (*3)

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

And result should be, (*4)

bool(true)

See full example in example.php., (*5)

Debug mode

Request and response headers and bodies can be printed by forcing debug mode of the client. Notice the last optional argument:, (*6)

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

Now lots of details became visible., (*7)

What is currently implemented

  • driver licence check
  • very basic vehicle details by numberplates

How to test

Since InMotiv does not have open sandbox account, you have to create .env file in the project root with your credentials. Also you need to provide a valid driver licence and numberplates details., (*8)

INMOTIV_CLIENT_NUMBER=111111
INMOTIV_USERNAME=rdc111111999
INMOTIV_PASSWORD=xxxXXXxxx

DRIVER_LICENCE_NUMBER=xxxxxxxxxx
BIRTHDAY_YEAR=2000
BIRTHDAY_MONTH=10
BIRTHDAY_DAY=10

NUMBERPLATES_CAR=22PBR4
NUMBERPLATES_MOTORCYCLE=05MMGG
NUMBERPLATES_MOTORCYCLE_ELECTRIC=81MGVP
NUMBERPLATES_MOTORCYCLE_WITHOUT_FIRST_REGISTRATION_DATE=07MJHJ

Then just run ./vendor/bin/phpunit. Everything should be green., (*9)

The Versions

17/02 2018

dev-master

9999999-dev

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

17/02 2018

v0.3.2

0.3.2.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

17/02 2018

0.3.1

0.3.1.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

16/02 2018

v0.3

0.3.0.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

23/11 2017

v0.2.5

0.2.5.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

20/04 2017

v0.2.4

0.2.4.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

29/04 2016

v0.2.3

0.2.3.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

29/04 2016

v0.2.2

0.2.2.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

29/04 2016

v0.2.1

0.2.1.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

29/04 2016

v0.2.0

0.2.0.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

08/04 2016

v0.1.7

0.1.7.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

08/04 2016

v0.1.6

0.1.6.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

07/04 2016

v0.1.5

0.1.5.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

13/12 2015

v0.1.4

0.1.4.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

28/11 2015

v0.1.3

0.1.3.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

10/11 2015

v0.1.2

0.1.2.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland

07/11 2015

v0.1.1

0.1.1.0

InMotiv RDC SOAP PHP client

  Sources   Download

MIT

The Development Requires

api soap rdw rdc inmotiv netherland holland