PHP code example of krehak / sk-firmy

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

    

krehak / sk-firmy example snippets




use Krehak\SkFirmy\SkFirmy;
use Krehak\SkFirmy\Fields\BusinessId; // Ak budete vyhľadávať podľa IČO
use Krehak\SkFirmy\Fields\TaxId; // Ak budete vyhľadávať podľa DIČ

...

$skFirmy = new SkFirmy();
$results = $skFirmy->find(FieldType('xxx'))->getResults();

print_r($results);

...

// index.php

kFirmy\SkFirmy;
use Krehak\SkFirmy\Fields\BusinessId;

$skFirmy = new SkFirmy();
$results = $skFirmy->find(new BusinessId('31322832'))->getResults();

echo '<pre>';
print_r($results);
echo '</pre>';