PHP code example of kyc-ai / laravel

1. Go to this page and download the library: Download kyc-ai/laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kyc-ai / laravel example snippets


use KycAi\Laravel\Facades\Kyc;
use KycAi\Laravel\KycLevel;

$result = Kyc::number('1001244084')
    ->country('sa')
    ->level(KycLevel::Internal)
    ->verify();

$result = Kyc::document($request->file('id_front'))
    ->country('sa')
    ->extractWith('fake') // fake | tesseract | openai
    ->matchAgainst($request->input('national_id'))
    ->verify();

$result->approved();
$result->needsManualReview();
$result->toArray();

Kyc::document($file)
    ->country('sa')
    ->forUser($user->id)
    ->dispatch();

use KycAi\Laravel\Rules\KycDocument;

'id_front' => ['

use KycAi\Laravel\Filament\KycFilamentPlugin;

$panel->plugin(KycFilamentPlugin::make());
bash
php artisan vendor:publish --tag=kyc-migrations
php artisan migrate