PHPackages                             marcinjean/laravel-vpic - 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. [API Development](/categories/api)
4. /
5. marcinjean/laravel-vpic

ActiveLibrary[API Development](/categories/api)

marcinjean/laravel-vpic
=======================

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

1.3.1(7mo ago)127MITPHPPHP ^8.2

Since May 5Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/MarcinJean/laravel-vpic)[ Packagist](https://packagist.org/packages/marcinjean/laravel-vpic)[ RSS](/packages/marcinjean-laravel-vpic/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Laravel vPIC (VIN Decoder) by Marcin Jean
=========================================

[](#laravel-vpic-vin-decoder-by-marcin-jean)

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
----------

[](#-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
--------------

[](#-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
--------------

[](#-installation)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance63

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~37 days

Total

5

Last Release

226d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.3.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/da4379f2f58b0a207d390a5a155dda3299105f8240797f0f7ae191acb2eea295?d=identicon)[MarcinJean](/maintainers/MarcinJean)

---

Top Contributors

[![MarcinJean](https://avatars.githubusercontent.com/u/82165361?v=4)](https://github.com/MarcinJean "MarcinJean (8 commits)")

---

Tags

apilaravelphpvin

### Embed Badge

![Health badge](/badges/marcinjean-laravel-vpic/health.svg)

```
[![Health](https://phpackages.com/badges/marcinjean-laravel-vpic/health.svg)](https://phpackages.com/packages/marcinjean-laravel-vpic)
```

###  Alternatives

[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M220](/packages/spatie-laravel-query-builder)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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