alex-kalanis/simple-vin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alex-kalanis/simple-vin

最新稳定版本:v2.0.1

Composer 安装命令:

composer require alex-kalanis/simple-vin

包简介

Simple checking of Vehicle Identification Numbers

README 文档

README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

This is a set of PHP libraries for Vehicle Identification Numbers.

Ported from .Net library Vin .

PHP installation

composer.phar require alex-kalanis/simple-vin

(Refer to Composer Documentation if you are not familiar with composer)

API usage

// basic vin check
$lib = new \kalanis\simple_vin\SimpleVin(); // can be set via DI, usually no more dependency need
$x = $lib->isValid('11111111111111111'); // true
$m = $lib->getWorldManufacturer('TMP......D.......'); // Skoda Trolleybuses
$y = $lib->getModelYear('TMP......D.......'); // 2013
$k = $lib->restoreChecksumCharacter('1FTKR1AD_APA11957'); // X
$c = $lib->restoreChecksum('1FTKR1AD_APA11957'); // 1FTKR1ADXAPA11957

// extended vin check
$lib = new \kalanis\simple_vin\DeeperVin(); // can be set via DI, usually no more dependency need
$manufacturers = $lib->getPossibleManufacturers('ZAP......D.......'); // Piaggio, Vespa, Gilera

Sources

Changes

  • v1.0.0 - Initial port and refactor with extended tests
  • v1.1.0 - Calculate checksum characters from the rest of code
  • v1.2.0 - Update VIN manufacturer codes in accordance with the current Wikipedia page
  • v2.0.0 - Update VIN manufacturer format, update minimal php version

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-07-24