vinbolt/sdk
最新稳定版本:v0.2.1
Composer 安装命令:
composer require vinbolt/sdk
包简介
Official PHP SDK for the VINbolt headless API
README 文档
README
Official PHP SDK for the VINbolt headless API.
Install
composer require vinbolt/sdk
Quick start
use Vinbolt\Sdk\VinboltClient; $client = new VinboltClient('pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $home = $client->pages->get('home'); $header = $client->site->header(); $brand = $client->brand->get(); $cars = $client->vehicles->list(['make' => 'Honda']); $client->leads->create([ 'email' => 'shopper@example.com', 'name' => 'Jane Doe', 'vehicle_vin' => '1HGCM82633A123456', 'message' => 'Interested in a test drive', ]);
Resources
| Resource | Methods |
|---|---|
$client->pages |
list(), get(string $slug) |
$client->site |
header(), footer(), menu(string), menus() |
$client->brand |
get() |
$client->team |
list() |
$client->media |
get(string $ulid) |
$client->leads |
create(array $input) |
$client->vehicles |
list(array $query), featured(), get(string $ulid) |
Errors
All exceptions extend Vinbolt\Sdk\VinboltException:
AuthenticationException(401)NotFoundException(404)ValidationException(422) — exposes->errorskeyed by fieldRateLimitException(429) — exposes->retryAfter
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-06