Skip to content

Simple, 100% offline VIN decoder for PHP 8+. No API required. Decodes car make, model, year, and country ๐Ÿš—

Notifications You must be signed in to change notification settings

mmalyszko/php-local-vin-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Lightweight VIN Decoder for PHP 8+

Packagist Version CI

Decode vehicle brand, model, year, country and region from a VIN number using a fast, local PHP library โ€” no external API calls, no rate limits.

Installation

composer require mmalyszko/php-local-vin-decoder

Usage

use VinDecoder\Vin;

$vin = new Vin('W0L0TGF487G011234');

echo $vin->decodeBrand();   // Opel
echo $vin->decodeModel();   // Astra (if available in VDS database)
echo $vin->decodeYear();    // 2007
echo $vin->decodeCountry(); // Germany
echo $vin->decodeRegion();  // Europe

VDS Database

Most common VDS codes matched to popular models are included by default. You can override the database with your own file:

$vin->setVdsDataFilePath('/path/to/your/vds.php');

Testing

Run all tests and check coverage (100%):

composer test
composer test:cover

About

Simple, 100% offline VIN decoder for PHP 8+. No API required. Decodes car make, model, year, and country ๐Ÿš—

Topics

Resources

Stars

Watchers

Forks

Languages