PHP code example of versatecnologiaoficial / cadsus-client

1. Go to this page and download the library: Download versatecnologiaoficial/cadsus-client 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/ */

    

versatecnologiaoficial / cadsus-client example snippets


use Versatecnologia\Cadsus\CadsusClient;
use Versatecnologia\Cadsus\DTO\CadsusCredentials;
use Versatecnologia\Cadsus\DTO\CadsusSearchRequest;

$cadsus = CadsusClient::create();
$credentials = new CadsusCredentials("tenant-nao-sensivel", $certificateContents, $certificatePassword);

$result = $cadsus
    ->forCredentials($credentials)
    ->search(CadsusSearchRequest::byCpf('00000000000'));
bash
php artisan vendor:publish --tag=cadsus-client-config