equipal/companieshouse

A Laravel wrapper for the companies house API

v1.1.0 2022-06-15 13:21 UTC

This package is auto-updated.

Last update: 2024-04-15 17:32:04 UTC


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');

Full API reference