Download the PHP package juststeveking/companies-house-laravel without Composer
On this page you can find all versions of the php package juststeveking/companies-house-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juststeveking/companies-house-laravel
More information about juststeveking/companies-house-laravel
Files in juststeveking/companies-house-laravel
Package companies-house-laravel
Short Description A Laravel wrapper to get companies house information and validate company numbers
License MIT
Homepage https://github.com/juststeveking/companies-house-laravel
Informations about the package companies-house-laravel
Laravel Companies House
![](./companies-house-laravel.png)
A Laravel wrapper to get companies house information and validate company numbers.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
This library is aimed to be easy to use, and slots into Laravel with no issues.
The package will install a Service Provider for you, meaning that all you need to do is resolve the Client
from the container, and start using it.
Get A Company Profile
To get a company profile, you can quite simply:
Get A Companies Officers
You can get a Collection
of Company Officers using the companies number:
Get a specific Officer from a Company
You can get an Officer
from a company using the company number and their appointment ID:
Searching
There are a few options when it comes to searching, you can search for:
- companies
- officers
- disqualified officers
- search all
Searching for Companies
This will return a SearchCollection
Searching for Officers
This will return a SearchCollection
Searching everything
This will return a SearchCollection
Validation
Using the validation inline:
Testing
To understand how to use this part please follow the Laravel documentation for Testing the Http Client
Run the unit tests:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Steve McDougall
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of companies-house-laravel with dependencies
illuminate/contracts Version ^8.40
illuminate/support Version ^8.0
spatie/data-transfer-object Version ^3.1