equipal/companieshouse

companies house API 的 Laravel 封装

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

This package is auto-updated.

Last update: 2024-09-15 18:24:32 UTC


README

一个用于查询 Companies House API 的 Laravel 包。

从现在已消失的 kudosagency/companieshouse 分支。

安装

composer require equipal/companieshouse

发布配置文件

php artisan vendor:publish

将您的 Companies house API 密钥添加到配置文件 (/config/companieshouse.php) 或 env 文件中

COMPANIES_HOUSE_API_KEY=Your_api_key

用法

use Equipal\CompaniesHouse\Controllers\CompaniesHouse;

要使用

$companieshouse = new CompaniesHouse;
$companieshouse->get('search/companies?q=KudosLabs');

或者,您可以使用外观

CompaniesHouse::get('search/companies?q=KudosLabs');

完整 API 参考