Skip to content
/ vin Public
forked from sunrise-php/vin

Simple VIN decoder for PHP 7.1+ (incl. PHP 8) based on ISO-3779

License

Notifications You must be signed in to change notification settings

automex/vin

 
 

Repository files navigation

Simple VIN decoder for PHP 7.1+ (incl. PHP 8) based on ISO-3779

Gitter Build Status Code Coverage Scrutinizer Code Quality Total Downloads Latest Stable Version License

Installation

composer require sunrise/vin

How to use?

use InvalidArgumentException;
use Sunrise\Vin\Vin;

try {
    $vin = new Vin('WVWZZZ1KZ6W612305');
} catch (InvalidArgumentException $e) {
    // It isn't a valid VIN...
}

$vin->getVin(); // returns "WVWZZZ1KZ6W612305"
$vin->getWmi(); // returns "WVW"
$vin->getVds(); // returns "ZZZ1KZ"
$vin->getVis(); // returns "6W612305"
$vin->getRegion(); // returns "Europe"
$vin->getCountry(); // returns "Germany"
$vin->getManufacturer(); // returns "Volkswagen"
$vin->getModelYear(); // returns [2006]

Useful links

About

Simple VIN decoder for PHP 7.1+ (incl. PHP 8) based on ISO-3779

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%