2017 © Pedro Peláez
 

library companieshouse-api-php-client

API Wrapper for the Companies House API

image

netsensia/companieshouse-api-php-client

API Wrapper for the Companies House API

  • Tuesday, March 7, 2017
  • by Chrismo2012
  • Repository
  • 1 Watchers
  • 7 Stars
  • 649 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Companies House API PHP Client

You will need an API key to use this client. To get an API key, go to https://developer.companieshouse.gov.uk/api/docs/index/gettingStarted/apikey_authorisation.html, (*1)

Add to project using Composer

"require" : {
  "netsensia/companieshouse-api-php-client" : "~0.1.0"
},

Usage

$client = new Client($apiKey);
$profile = $client->getCompanyProfile($companyNumber);
$profile->getCompanyProfile('06236637')->registered_office_address->address_line_1;

$officerList = $client->getOfficerList($companyNumber);

$companyList = $client->companySearch('netsen');

A full list of available calls can be found by examining the ClientSpec.php file which contains the spec tests. The json directory contains examples of the data returned by the Companies House API., (*2)

Development

Clone the repo and compose

git clone git@github.com:netsensia/companieshouse-api-php-client
cd companieshouse-api-php-client
php composer.phar install

Run the tests

Create a file called .apiKey in the root of the project and add your companies house api key to it., (*3)

bin/phpspec run --format=pretty -vvv --stop-on-failure

The Versions

07/03 2017

dev-master

9999999-dev

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires

07/03 2017

v0.3.1

0.3.1.0

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires

07/03 2017

v0.3.0

0.3.0.0

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires

17/05 2016

v0.2.0

0.2.0.0

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires

02/02 2016

v0.1.0

0.1.0.0

API Wrapper for the Companies House API

  Sources   Download

MIT

The Requires

 

The Development Requires