PHP code example of assurdeal / laravel-orias

1. Go to this page and download the library: Download assurdeal/laravel-orias 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/ */

    

assurdeal / laravel-orias example snippets


use Assurdeal\LaravelOrias\Requests\ShowBrokerRequest;

$response = ShowBrokerRequest::make('123456789')->send();

/** @var \Assurdeal\LaravelOrias\Data\Intermediary $dto */
$dto = $response->dto();

use Assurdeal\LaravelOrias\Rules\RegisteredIntermediary;
use Assurdeal\LaravelOrias\Enums\RegistrationCategory;

Validator::make($data, [
    'orias' => ['ategory::COA,
            RegistrationCategory::AGA
        )
    ],
]);

Validator::make($data, [
    'orias' => [
        '