philwc / companies-house
A client for the companies house API
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/philwc/companies-house
Requires
- php: >=7.0
- guzzlehttp/guzzle: ^6.2
- php-ds/php-ds: ^1.1
Requires (Dev)
- pds/skeleton: ^1.0
This package is not auto-updated.
Last update: 2025-10-12 01:59:49 UTC
README
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... }