Laravel SDK

bash
composer require vineeid/laravel-sdk
php artisan vendor:publish --tag=vine-config

Configure the secret in your environment:

env
VINE_API_KEY=your_secret_api_key_from_dashboard
php
use Vine\Laravel\Facades\Vine;

$result = Vine::initFlow([
    'vid' => '657787756543',
    'request_type' => 'login',
    'scope' => ['profile.read'],
]);

Cache::put('vine_secret_'.$result['flow_id'], $result['flow_secret'], now()->addMinutes(10));

Use the facade's getFlowStatus, listFlows, getMetrics, and resendNotification methods from server-side controllers or jobs.