承接 vindecodervehicle/php-sdk 相关项目开发

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

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

vindecodervehicle/php-sdk

Composer 安装命令:

composer require vindecodervehicle/php-sdk

包简介

Official PHP SDK for the VIN Decoder Vehicle API — decode VINs, browse catalogs, OEM parts, fluids and repair times.

README 文档

README

CI Latest Version License: MIT PHP Version

Official PHP SDK for the VIN Decoder Vehicle API — decode VINs, browse vehicle catalogs, retrieve OEM parts, fluid capacities, repair times, and engine details.

Español: README en español

Features

  • Decode VIN (first match or all matches)
  • Get vehicle details by carId
  • Fluid capacities and OEM parts
  • Repair times (plan-dependent)
  • Browse brands, models, and variants
  • Engine details by VIN
  • Strongly typed PHP 8.1+ models
  • Full test coverage with PHPUnit

Requirements

  • PHP 8.1 or higher
  • ext-json
  • Guzzle 7.x

Installation

composer require vindecodervehicle/php-sdk

Get your API credentials at vindecodervehicle.com.

Quick Start

<?php

use VinDecoderVehicle\Sdk\VinDecoderClient;

$client = VinDecoderClient::create(
    user: 'YOUR_USER',
    apiKey: 'YOUR_API_KEY',
);

// Decode a VIN
$vehicle = $client->vin()->decode('WF0GXXGAJ69C71882');

echo $vehicle->getFullName(); // BMW 3 Coupe (E92) 316 i
echo $vehicle->make;        // BMW
echo $vehicle->year;        // 2007
echo $vehicle->carId;       // 55565

API Reference

VIN

// First matching vehicle
$vehicle = $client->vin()->decode('WF0GXXGAJ69C71882');

// All matching vehicles
$vehicles = $client->vin()->decodeAll('WF0GXXGAJ69C71882');

// Engine details
$engines = $client->vin()->getEngines('WF0GXXGAJ69C71882');

Vehicle by carId

$vehicle = $client->vehicle()->getById(55565);
$fluids  = $client->vehicle()->getFluidCapacities(55565);
$parts   = $client->vehicle()->getOemParts(55565);
$repairs = $client->vehicle()->getRepairTimes(55565); // plan-dependent

Catalog

$brands   = $client->catalog()->listBrands();
$models   = $client->catalog()->listModels('bmw');
$variants = $client->catalog()->listVariants('bmw', '3-series');

Environment Variables

For the included examples:

export VINDECODER_USER=your_user
export VINDECODER_KEY=your_api_key
php examples/decode-vin.php WF0GXXGAJ69C71882

Error Handling

use VinDecoderVehicle\Sdk\Exception\ApiException;
use VinDecoderVehicle\Sdk\Exception\AuthenticationException;
use VinDecoderVehicle\Sdk\Exception\InvalidArgumentException;

try {
    $vehicle = $client->vin()->decode('INVALID');
} catch (InvalidArgumentException $e) {
    // Invalid VIN format
} catch (AuthenticationException $e) {
    // Invalid user or API key
} catch (ApiException $e) {
    // API error (quota, plan limits, etc.)
    echo $e->getMessage();
    print_r($e->getResponseBody());
}

Available Models

Model Description
Vehicle Decoded vehicle data
Engine Engine details with attributes
FluidCapacity Oil, coolant, brake fluid, etc.
OemPartGroup OEM parts grouped by category
RepairTime Labor hours for repairs
Brand Vehicle brand
VehicleModel Model within a brand
Variant Model variant / trim

Examples

File Description
examples/decode-vin.php Basic VIN decode
examples/catalog-browse.php Browse brands, models, variants
examples/full-workflow.php Complete workflow

Development

git clone https://github.com/JoxMarkes/vindecodervehicle-php-sdk.git
cd vindecodervehicle-php-sdk
composer install
composer test

Official SDKs

Language Package Repository
PHP composer require vindecodervehicle/php-sdk vindecodervehicle-php-sdk
Python pip install vindecodervehicle-sdk vindecodervehicle-python-sdk
Node.js npm install @vindecodervehicle/sdk vindecodervehicle-node-sdk
JavaScript npm install @vindecodervehicle/browser vindecodervehicle-js-sdk

Links

License

This project is licensed under the MIT License.

vindecodervehicle/php-sdk 适用场景与选型建议

vindecodervehicle/php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「api」 「sdk」 「vehicle」 「vin」 「automotive」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 vindecodervehicle/php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 vindecodervehicle/php-sdk 我们能提供哪些服务?
定制开发 / 二次开发

基于 vindecodervehicle/php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-10