承接 marcinjean/laravel-vpic 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

marcinjean/laravel-vpic

最新稳定版本:1.3.1

Composer 安装命令:

composer require marcinjean/laravel-vpic

包简介

Laravel-native vPIC (NHTSA) VIN decoder with exception-based flow and idempotent persistence.

README 文档

README

A lightweight, Laravel-native wrapper around NHTSA’s vPIC API for decoding VINs — with:

  • Exception-based error handling using vPIC ErrorCode/ErrorText
  • Clean, idempotent persistence (single canonical hash over full payload)
  • Batch decoding with per-VIN errors
  • Simple service (VPicService) and optional Facade (VPic) for ergonomic use

Works great for repair-story pipelines, TSB indexing, and recall integrations.

✨ Features

  • Decode single or batch VINs via vPIC REST endpoints
  • Throws meaningful exceptions:
    • InvalidVinException (bad VIN format)
    • VpicHttpException (HTTP failure)
    • VpicDecodeException (vPIC ErrorCode != 0; exposes ErrorText)
  • Database persistence (optional) into vpic_decoded_vins with a single SHA-256 hash to avoid churn
  • Sanitized payloads (common “nullish” values → null) and trimmed strings
  • Publishable config + migration
  • Clean service contract for future offline driver support

🧩 Requirements

  • PHP: 8.2+
  • Laravel: 11.x or 12.x (works with 10.x if you adjust constraints)
  • PHP ext-json
  • Laravel HTTP client available (standard in modern Laravel)

📦 Installation

composer require marcinjean/laravel-vpic
php artisan vendor:publish --tag=vpic-config
php artisan vendor:publish --tag=vpic-migrations
php artisan migrate

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-05