mmalyszko/vinfast-php

This package is abandoned and no longer maintained. The author suggests using the mmalyszko/php-local-vin-decoder package instead.

Lightweight VIN decoder for PHP 8+. Quickly decode vehicle brand, model, year, country, and region from a VIN — 100% local, no external API required.

Maintainers

Package info

github.com/mmalyszko/php-local-vin-decoder

pkg:composer/mmalyszko/vinfast-php

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.0.0 2026-01-09 12:25 UTC

This package is auto-updated.

Last update: 2026-04-13 11:09:22 UTC


README

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