This package provides convenient access to the Vapi SDK using the Laravel framework.
You can install the package via composer:
composer require spiralink/vapi-for-laravelAfter that, define your vapi token inside the config/services.php configuration file:
'vapi' => [
'token' => env('VAPI_TOKEN'),
'options' => [
// additional request options for Guzzle
],
],Optionally, you may provide global request options that will be passed along to the underlying Guzzle client.
$assistants = vapi()->assistants->list();$vapi = app('vapi');
$assistants = $vapi->assistants->list();use Vapi\Vapi;
final readonly class AssistantController
{
public function __construct(private Vapi $vapi) {}
public function index(): void
{
$assistants = $this->vapi->assistants->list();
return view('assistants.index', ['assistants' => $assistants]);
}
}composer testPlease see CHANGELOG for more information on what has changed recently.
If you discover any security related issues, please email support@spiralink.ai instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.