2017 © Pedro Peláez
 

library vin

VIN (Vehicle Identification Number) validation and diagnostic library

image

phillipsdata/vin

VIN (Vehicle Identification Number) validation and diagnostic library

  • Thursday, January 7, 2016
  • by clphillips
  • Repository
  • 4 Watchers
  • 7 Stars
  • 1,431 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

VIN

Build Status Coverage Status, (*1)

VIN (Vehicle Identification Number) validation and diagnostic library., (*2)

Features

  • Validates North American VIN numbers.
  • Returns all possible years of manfacture for North American VIN numbers.
  • Returns the country of manufacturer for VINs defined by ISO 3779.
  • Supports custom readers for validating VINs outside of North America.

Installation

Install via composer:, (*3)

composer require phillipsdata/vin

Basic Usage

use PhillipsData\Vin\Number;

$vin = new Number('1M8GDM9AXKP042788');

$vin->valid(); // returns whether the VIN is valid
$vin->country(); // returns the ISO 3166 country code for the country of origin
$vin->number(); // returns the VIN number (e.g. 1M8GDM9AXKP042788)
$vin->year(); // returns an array of possible manufacturer years

Advanced Usage

You can supply your own VIN reader. This allows you to implement a VIN reader for vehicles manufactured in other countries (outside of North America)., (*4)

use PhillipsData\Vin\Number;

$vin = new Number('1M8GDM9AXKP042788', new PhillipsData\Vin\Reader\NorthAmerica());

$reader = $vin->reader(); // returns instance of PhillipsData\Vin\Reader\ReaderInterface

Contributions

We're interested in contributions that add additional PhillipsData\Vin\Reader\ReaderInterface implementations for unsupported regions., (*5)

We'd also love for this library to support extracting Manufacturer (e.g. Ford, Chevrolet, etc.) based on the SAE's assignment of world manufacturer identifiers., (*6)

The Versions

07/01 2016

dev-master

9999999-dev

VIN (Vehicle Identification Number) validation and diagnostic library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Cody Phillips

07/01 2016

1.0.0

1.0.0.0

VIN (Vehicle Identification Number) validation and diagnostic library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Cody Phillips