equipal / companieshouse
A Laravel wrapper for the companies house API
v1.1.0
2022-06-15 13:21 UTC
Requires
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^8.5.23
README
A laravel package to query the Companies House API.
Forked from the now vanished kudosagency/companieshouse.
Install
composer require equipal/companieshouse
Publish config file
php artisan vendor:publish
Add your Companies house API key to your config (/config/companieshouse.php) or env file
COMPANIES_HOUSE_API_KEY=Your_api_key
Usage
use Equipal\CompaniesHouse\Controllers\CompaniesHouse;
To use
$companieshouse = new CompaniesHouse;
$companieshouse->get('search/companies?q=KudosLabs');
Or, you can use the facade
CompaniesHouse::get('search/companies?q=KudosLabs');