Package Data | |
---|---|
Maintainer Username: | GhazanfarMir |
Maintainer Contact: | GhazanfarMir@gmail.com (Ghazanfar Mir) |
Package Create Date: | 2017-08-11 |
Package Last Update: | 2024-02-05 |
Home Page: | https://github.com/GhazanfarMir/laravel-companies-house |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:03:47 |
Package Statistics | |
---|---|
Total Downloads: | 6,086 |
Monthly Downloads: | 51 |
Daily Downloads: | 3 |
Total Stars: | 13 |
Total Watchers: | 3 |
Total Forks: | 14 |
Total Open Issues: | 4 |
This Laravel Package implements an API client for the Companies House REST API. It can be used to look up information about companies registered in the United Kingdom. As of July 2016, this API is described by Companies House as a "beta service." More information about this free API can be found on the Companies House API website.
Please note, this package is still under development and isn't ready for production yet. Once ready, I will remove this warning; so keep looking at this space.
To install, use the following to pull the package via Composer.
composer require ghazanfarmir/laravel-companies-house
Now register the Service Provider in config/app.php
'providers' => [
...
GhazanfarMir\CompaniesHouse\CompaniesHouseServiceProvider::class,
],
And also add the alias to the same file.
'aliases' => [
...
'CompaniesHouse' => GhazanfarMir\CompaniesHouse\Facades\CompaniesHouse::class,
],
Finally publish the config file.
php artisan vendor:publish
use GhazanfarMir\CompaniesHouse\Facades\CompaniesHouse;
CompaniesHouse::search()->all('Ebury');
CompaniesHouse::search()->companies('Ebury');
CompaniesHouse::search()->officers('Ebury');
CompaniesHouse::search()->disqualified_officers('Ebury');
CompaniesHouse::company('07086058'); // returns an object
CompaniesHouse::company('07086058')->get();
CompaniesHouse::company('07086058')->registered_office_address();
CompaniesHouse::company('07086058')->officers();
CompaniesHouse::company('07086058')->insolvency();
CompaniesHouse::company('07086058')->establishments();
CompaniesHouse::company('07086058')->registers(); // returns 404
CompaniesHouse::company('07086058')->excemptions();
CompaniesHouse::charges('07086058')->all();
CompaniesHouse::charges('07086058')->find(chargesId);
CompaniesHouse::filingHistory('07086058')->all();
CompaniesHouse::filingHistory('07086058')->find('MzE4MjE3NzM2MGFkaXF6a2N4');
Feel free to submit an issue if you have any issues.
MIT License 2017 - Ghazanfar Mir