PHP code example of synergitech / creditsafe-connect

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

    

synergitech / creditsafe-connect example snippets


$config = [
    'username'  =>  'username',
    'password'  =>  'password'
];

$creditsafe = new \SynergiTech\Creditsafe\Client($config);

$creditsafe->countries()->access();


$creditsafe->companies()->searchCriteria(['countries' => 'GB']);


$search = $creditsafe->companies()->search(['countries' => 'GB', 'name' => 'GOOGLE UK LIMITED']);
$search->setPageSize(100);
foreach ($search as $result) {
    $company = $result->get();
}

$creditsafe->()->reportCustomData()->get('DE');

$creditsafe->companies()->get('GB001-0-03977902');

$creditsafe->companies()->get('GB001-0-03977902', 'FR');

$creditsafe->companies()->get('GB001-0-03977902', 'DE', ['customData' => 'de_reason_code::1']);