composer require synergitech/creditsafe-connect
$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']);
vendor/bin/phpunit tests