PHP code example of unapi / fns

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

    

unapi / fns example snippets


use unapi\fns\common\Anticaptcha;
use unapi\fns\uwsfind\Service;

$service = new Service([
  'anticaptcha' => new Anticaptcha(new AntigateService([...]),
]);

use unapi\fns\uwsfind\Declaration;
use unapi\fns\uwsfind\requests;

/** @var Declaration[] $declarations */
$declarations = $service->findDeclarations(
  new requests\ByLegalRequest('1027700070518')
)->wait();

use unapi\fns\uwsfind\Declaration;
use unapi\fns\uwsfind\requests;

/** @var Declaration[] $declarations */
$declarations = $service->findDeclarations(
  new requests\BySoleProprietorRequest('312504026800041')
)->wait();