vinbolt/laravel
最新稳定版本:v0.2.1
Composer 安装命令:
composer require vinbolt/laravel
包简介
Laravel integration for the VINbolt PHP SDK
README 文档
README
Laravel integration for the VINbolt PHP SDK.
Provides a service provider, facade, and config file so you can call the VINbolt headless API directly from Laravel apps.
Install
composer require vinbolt/laravel
The service provider auto-registers via Laravel's package discovery.
Configure
Set your API key in .env:
VINBOLT_API_KEY=pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx VINBOLT_BASE_URL=https://vinbolt.com/api/v1
(Optional) publish the config file to customize:
php artisan vendor:publish --tag=vinbolt-config
Usage
Facade
use Vinbolt\Laravel\Facades\Vinbolt; $home = Vinbolt::pages->get('home'); $header = Vinbolt::site->header(); $brand = Vinbolt::brand->get(); $cars = Vinbolt::vehicles->list(['make' => 'Honda']); Vinbolt::leads->create([ 'email' => 'shopper@example.com', 'name' => 'Jane Doe', 'vehicle_vin' => '1HGCM82633A123456', ]);
Dependency injection
use Vinbolt\Sdk\VinboltClient; class HomeController { public function __construct(private VinboltClient $vinbolt) {} public function show() { return view('home', [ 'page' => $this->vinbolt->pages->get('home'), 'header' => $this->vinbolt->site->header(), ]); } }
Resources
See the PHP SDK README for the full resource list — this package
is a pure Laravel wrapper, all methods come from vinbolt/sdk.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-06