Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Pull request Compare This branch is 3 commits behind SynergiTech:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data/authorization
src
tests
.gitignore
LICENSE
README.md
composer.json

README.md

Creditsafe API

composer require synergitech/creditsafe-connect

Usage

Setting up Client

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

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

Access countries and their codes

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

Search criteria using country code


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

Company search pagination

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

Get company report

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

Running tests

vendor/bin/phpunit tests
You can’t perform that action at this time.