2017 © Pedro Peláez
 

library infoconnect-php-client

Infoconnect API Client for PHP projects

image

jobbrander/infoconnect-php-client

Infoconnect API Client for PHP projects

  • Sunday, January 17, 2016
  • by karllhughes
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Infoconnect PHP Client

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., (*1)

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., (*2)

Installation

To install, use composer:, (*3)

composer require jobbrander/infoconnect-php-client

Usage

Get Company by ID

$client = new new InfoconnectClient(['apiKey' => XXX]);

$id = '826381212';

$result = $client->getCompany($id);

var_dump($result);

Search for Companies

Using GET Method

$client = new new InfoconnectClient(['apiKey' => XXX]);

$parameters = [
    'companyname' => 'Google',
    'resourcetype' => 'Enhanced',
];

$results = $client->getSearchCompanies($parameters);

var_dump($results);

Using POST Method

$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);

Testing

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., (*4)

Running Tests

  • 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

Contributing

Please see CONTRIBUTING for details., (*5)

License

The Apache 2.0. Please see License File for more information., (*6)

The Versions

17/01 2016

dev-master

9999999-dev https://github.com/JobBrander/infoconnect-php-client

Infoconnect API Client for PHP projects

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs api client infoconnect

17/01 2016

0.2.0

0.2.0.0 https://github.com/JobBrander/infoconnect-php-client

Infoconnect API Client for PHP projects

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs api client infoconnect

19/12 2015

0.1.0

0.1.0.0 https://github.com/JobBrander/infoconnect-php-client

Infoconnect API Client for PHP projects

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs api client infoconnect