PHPackages                             sunrise/vin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sunrise/vin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sunrise/vin
===========

VIN decoder for PHP 7.1+ based on ISO-3779

v1.3.0(1y ago)81141.2k↓51.2%27[3 issues](https://github.com/sunrise-php/vin/issues)[6 PRs](https://github.com/sunrise-php/vin/pulls)MITPHPPHP ^7.1|^8.0

Since Oct 17Pushed 3d ago6 watchersCompare

[ Source](https://github.com/sunrise-php/vin)[ Packagist](https://packagist.org/packages/sunrise/vin)[ Docs](https://github.com/sunrise-php/vin)[ RSS](/packages/sunrise-vin/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (34)Used By (0)

Simple VIN decoder for PHP 7.1+ based on ISO-3779
-------------------------------------------------

[](#simple-vin-decoder-for-php-71-based-on-iso-3779)

[![Gitter](https://camo.githubusercontent.com/4f746188a409f8b948864cd36ddde5d326feef61d429442e1b43be9edb3c4547/68747470733a2f2f6261646765732e6769747465722e696d2f73756e726973652d7068702f737570706f72742e706e67)](https://gitter.im/sunrise-php/support)[![Build Status](https://camo.githubusercontent.com/e5d7f91b505f0679df478d7303794af302ba04b4f8b015f97698f93fb149c793/68747470733a2f2f636972636c6563692e636f6d2f67682f73756e726973652d7068702f76696e2e7376673f7374796c653d736869656c64)](https://circleci.com/gh/sunrise-php/vin)[![Code Coverage](https://camo.githubusercontent.com/1bec31a6705e3e15497649ce286981ae687eca042cf0a52701e001a71f37c639/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e726973652d7068702f76696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunrise-php/vin/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8d267a87e841e0419e522861f8782afe0a888de0906694ff9ff342319a24a342/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e726973652d7068702f76696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunrise-php/vin/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/215a54d48202db5e16c408cd371bf623a7d7c97715ae9655a0010755b15f3b1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73756e726973652f76696e2e7376673f6c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/sunrise/vin)[![Latest Stable Version](https://camo.githubusercontent.com/e9c3cab19e4070150ed9090d7e9e1e9e99d227ae9693cebf8d16875091ad09bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73756e726973652f76696e2e7376673f6c6162656c3d76657273696f6e)](https://packagist.org/packages/sunrise/vin)[![License](https://camo.githubusercontent.com/22c00475d3dac050a054dbe85144e14cee9888940b63fc74f1a806892dbf9b50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f73756e726973652f76696e2e7376673f6c6162656c3d6c6963656e7365)](https://packagist.org/packages/sunrise/vin)

Installation
------------

[](#installation)

```
composer require sunrise/vin
```

How to use?
-----------

[](#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(); // "WVWZZZ1KZ6W612305"
$vin->getWmi(); // "WVW"
$vin->getVds(); // "ZZZ1KZ"
$vin->getVis(); // "6W612305"
$vin->getRegion(); // "Europe"
$vin->getCountry(); // "Germany"
$vin->getManufacturer(); // "Volkswagen"
$vin->getModelYear(); // [2006]

// convert the VIN to a string
(string) $vin;

// converts the VIN to array
$vin->toArray();
```

Useful links
------------

[](#useful-links)

- [https://en.wikipedia.org/wiki/Vehicle\_identification\_number](https://en.wikipedia.org/wiki/Vehicle_identification_number)
- [https://en.wikibooks.org/wiki/Vehicle\_Identification\_Numbers\_(VIN\_codes)](https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes))
- [https://en.wikibooks.org/wiki/Vehicle\_Identification\_Numbers\_(VIN\_codes)/World\_Manufacturer\_Identifier\_(WMI)](https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/World_Manufacturer_Identifier_(WMI))
- [https://en.wikibooks.org/wiki/Vehicle\_Identification\_Numbers\_(VIN\_codes)/Model\_year](https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/Model_year)

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance69

Regular maintenance activity

Popularity49

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 77.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~246 days

Total

23

Last Release

690d ago

PHP version history (4 changes)v1.0.0PHP &gt;=7.2.0

v1.0.6PHP ^7.2

v1.0.8PHP ^7.1

v1.1.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2872934?v=4)[Anatolii Nekhai](/maintainers/fenric)[@fenric](https://github.com/fenric)

---

Top Contributors

[![fenric](https://avatars.githubusercontent.com/u/2872934?v=4)](https://github.com/fenric "fenric (74 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (8 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (3 commits)")[![samaphp](https://avatars.githubusercontent.com/u/531627?v=4)](https://github.com/samaphp "samaphp (3 commits)")[![kristapsk](https://avatars.githubusercontent.com/u/4500994?v=4)](https://github.com/kristapsk "kristapsk (2 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (2 commits)")[![sigveholmen](https://avatars.githubusercontent.com/u/41207531?v=4)](https://github.com/sigveholmen "sigveholmen (2 commits)")[![WolfForest](https://avatars.githubusercontent.com/u/4728356?v=4)](https://github.com/WolfForest "WolfForest (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

iso-3779php-libraryphp7php8vinvin-codesvin-decoderPHP7decoderphp8sunrisevinfenriciso-3779

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sunrise-vin/health.svg)

```
[![Health](https://phpackages.com/badges/sunrise-vin/health.svg)](https://phpackages.com/packages/sunrise-vin)
```

###  Alternatives

[melbahja/seo

SEO library for PHP is a simple PHP library to help developers 🍻 do better on-page SEO optimizations.

367157.6k9](/packages/melbahja-seo)[butschster/cron-expression-generator

Cron expression generator

511.8M3](/packages/butschster-cron-expression-generator)[sunrise/hydrator

A flexible strictly-typed hydrator.

2133.1k6](/packages/sunrise-hydrator)[dflydev/base32-crockford

Encode/decode numbers using Douglas Crockford's Base32 Encoding

14416.4k1](/packages/dflydev-base32-crockford)[nutgram/hydrator

Hydrator for PHP 8.0+

12346.2k9](/packages/nutgram-hydrator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
