vinbolt / sdk
Official PHP SDK for the VINbolt headless API
v0.2.1
2026-05-06 14:53 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.0
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