Infoconnect provides some excellent company and personnel data that you can access via their API. This wrapper makes it easy to connect to and use their data in a PHP application. See more information about the Infoconnect API here.
Note: This project is still a work in progress and may change frequently. Be aware of this if you decide to use it in production, and please let me know if you'd like to contribute.
To install, use composer:
composer require jobbrander/infoconnect-php-client
$client = new new InfoconnectClient(['apiKey' => XXX]);
$id = '826381212';
$result = $client->getCompany($id);
var_dump($result);
$client = new new InfoconnectClient(['apiKey' => XXX]);
$parameters = [
'companyname' => 'Google',
'resourcetype' => 'Enhanced',
];
$results = $client->getSearchCompanies($parameters);
var_dump($results);
$client = new new InfoconnectClient(['apiKey' => XXX]);
$parameters = [
'companyname' => 'Google',
'resourcetype' => 'Enhanced',
];
$results = $client->postSearchCompanies($parameters);
var_dump($results);
$client = new new InfoconnectClient(['apiKey' => XXX]);
$parameters = [
'companyname' => 'Google',
];
$results = $client->postCountCompanies($parameters);
var_dump($results);
Unit testing is important. If you're going to make a pull request against this library, please be sure to write some tests as well.
- Run the PHPUnit test suite:
APIKEY=<YOUR API KEY> phpunit
- Run the PHPUnit tests with code coverage report
APIKEY=<YOUR API KEY> phpunit --coverage-text
Please see CONTRIBUTING for details.
The Apache 2.0. Please see License File for more information.