{"id":19183988,"url":"https://github.com/sunrise-php/vin","last_synced_at":"2025-05-16T10:07:26.403Z","repository":{"id":41176332,"uuid":"153298194","full_name":"sunrise-php/vin","owner":"sunrise-php","description":"Simple VIN decoder for PHP 7.1+ based on ISO-3779","archived":false,"fork":false,"pushed_at":"2025-05-11T09:33:12.000Z","size":88,"stargazers_count":79,"open_issues_count":9,"forks_count":25,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-11T10:29:09.535Z","etag":null,"topics":["iso-3779","php-library","php7","php8","vin","vin-codes","vin-decoder"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunrise-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-16T14:18:20.000Z","updated_at":"2025-03-01T15:17:01.000Z","dependencies_parsed_at":"2022-09-03T12:00:31.424Z","dependency_job_id":"ef4a87ce-c662-4b04-9e7d-6f91a8a81b14","html_url":"https://github.com/sunrise-php/vin","commit_stats":{"total_commits":89,"total_committers":10,"mean_commits":8.9,"dds":0.3820224719101124,"last_synced_commit":"721e36239d001d89a6f6a02b8c2a79b2655c79cf"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fvin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fvin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fvin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunrise-php%2Fvin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunrise-php","download_url":"https://codeload.github.com/sunrise-php/vin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253553247,"owners_count":21926595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iso-3779","php-library","php7","php8","vin","vin-codes","vin-decoder"],"created_at":"2024-11-09T11:05:45.814Z","updated_at":"2025-05-16T10:07:21.394Z","avatar_url":"https://github.com/sunrise-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple VIN decoder for PHP 7.1+ based on ISO-3779\n\n[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support)\n[![Build Status](https://circleci.com/gh/sunrise-php/vin.svg?style=shield)](https://circleci.com/gh/sunrise-php/vin)\n[![Code Coverage](https://scrutinizer-ci.com/g/sunrise-php/vin/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/vin/?branch=master)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sunrise-php/vin/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sunrise-php/vin/?branch=master)\n[![Total Downloads](https://img.shields.io/packagist/dt/sunrise/vin.svg?label=downloads)](https://packagist.org/packages/sunrise/vin)\n[![Latest Stable Version](https://img.shields.io/packagist/v/sunrise/vin.svg?label=version)](https://packagist.org/packages/sunrise/vin)\n[![License](https://img.shields.io/packagist/l/sunrise/vin.svg?label=license)](https://packagist.org/packages/sunrise/vin)\n\n## Installation\n\n```bash\ncomposer require sunrise/vin\n```\n\n## How to use?\n\n```php\nuse InvalidArgumentException;\nuse Sunrise\\Vin\\Vin;\n\ntry {\n    $vin = new Vin('WVWZZZ1KZ6W612305');\n} catch (InvalidArgumentException $e) {\n    // It isn't a valid VIN...\n}\n\n$vin-\u003egetVin(); // \"WVWZZZ1KZ6W612305\"\n$vin-\u003egetWmi(); // \"WVW\"\n$vin-\u003egetVds(); // \"ZZZ1KZ\"\n$vin-\u003egetVis(); // \"6W612305\"\n$vin-\u003egetRegion(); // \"Europe\"\n$vin-\u003egetCountry(); // \"Germany\"\n$vin-\u003egetManufacturer(); // \"Volkswagen\"\n$vin-\u003egetModelYear(); // [2006]\n\n// convert the VIN to a string\n(string) $vin;\n\n// converts the VIN to array\n$vin-\u003etoArray();\n```\n\n## Useful links\n\n* https://en.wikipedia.org/wiki/Vehicle_identification_number\n* https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)\n* https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/World_Manufacturer_Identifier_(WMI)\n* https://en.wikibooks.org/wiki/Vehicle_Identification_Numbers_(VIN_codes)/Model_year\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunrise-php%2Fvin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunrise-php%2Fvin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunrise-php%2Fvin/lists"}