2017 © Pedro Peláez
 

library dvlasearch

A simple object orientated way to interact with the dvlasearch API

image

opensaucesystems/dvlasearch

A simple object orientated way to interact with the dvlasearch API

  • Thursday, December 1, 2016
  • by lcherone
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

dvlasearch.co.uk - Logo, (*1)

DVLASearch - API Client

This PHP composer package provides a simple object orientated way to interact with the http://dvlasearch.co.uk API., (*2)

Setup:, (*3)

Using composer add the package to your project:, (*4)

composer require opensaucesystems/dvlasearch, (*5)

Initializing the client:, (*6)

<?php
require 'vendor/autoload.php';

/**
 * Initialize the API client class
 */
$dvlasearch = new opensaucesystems\dvlasearch\APIClient(
    'DvlaSearchDemoAccount' // API key
);

Making calls:, (*7)

To interact with the API, its as simple as calling a class method or property, endpoints are dynamically loaded when traversed to., (*8)

For example:, (*9)

print_r($dvlasearch->vin->find('WMX1903782A004387'), true);, (*10)

stdClass Object
(
    [co2Emissions] => 219 g/km
    [model] => Amg Gt
    [twelveMonthRate] => 
    [transmission] => Automatic
    [vrm] => 10GRX
    [colour] => WHITE
    [sixMonthRate] => 
    [yearOfManufacture] => 2015
    [dateOfFirstRegistration] => 31 July 2015
    [fuelType] => PETROL
    [revenueWeight] => 1890kg
    [typeApproval] => M1
    [vin] => WMX1903782A004387
    [wheelPlan] => 2 AXLE RIGID BODY
    [motDetails] => No details held by DVLA
    [make] => MERCEDES-BENZ
    [taxDetails] => Tax due: 01 August 2016
)

See: examples.php for further calls and there results., (*11)

The Versions

01/12 2016

dev-master

9999999-dev https://opensauce.systems

A simple object orientated way to interact with the dvlasearch API

  Sources   Download

MIT

The Requires

 

opensaucesystems dvlasearch dvla

01/12 2016

v0.1.0

0.1.0.0 https://opensauce.systems

A simple object orientated way to interact with the dvlasearch API

  Sources   Download

MIT

The Requires

 

opensaucesystems dvlasearch dvla