philwc / companies-house
There is no license information available for the latest version (0.0.1) of this package.
A client for the companies house API
0.0.1
2017-04-11 13:06 UTC
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-01-18 22:20:22 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... }