spiralink/vapi-for-laravel

Laravel framework adapter for Vapi's SDK.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/spiralink/vapi-for-laravel

0.1.0 2025-10-17 10:09 UTC

This package is auto-updated.

Last update: 2025-10-18 17:52:41 UTC


README

Vapi PHP SDK PHP

Build Status Total Downloads Latest Stable Version License

Laravel adapter for the Vapi SDK

This package provides convenient access to the Vapi SDK using the Laravel framework.

Installation

You can install the package via composer:

composer require spiralink/vapi-for-laravel

After 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.

Usage

$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]);
    }
}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security related issues, please email support@spiralink.ai instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.