Skip to content

philwc/companies-house

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Companies House PHP API Client

API Documentation: https://developer.companieshouse.gov.uk/api/docs/index.html

Example

require_once __DIR__ . '/vendor/autoload.php';

$apiKey = 'API KEY HERE';

/** @var \philwc\Call\Search\Name $nameSearch */
$nameSearch = \philwc\CompaniesHouseFactory::get('Search', 'Name', $apiKey);
/** @var \philwc\Call\Search\Number $numberSearch */
$numberSearch = \philwc\CompaniesHouseFactory::get('Search', 'Number', $apiKey);

$results = $nameSearch->search('cast uk');
/** @var \philwc\Entity\CompanySearch $result */
foreach ($results as $result) {
    /** @var \philwc\Entity\CompanyProfile $company */
    $company = $numberSearch->search($result->getCompanyNumber());

    // Do something with company...
}

About

A PHP Client for interacting with the Companies House API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages