2017 © Pedro Peláez
 

library laravel-companies-house

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

image

ghazanfarmir/laravel-companies-house

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  • Thursday, July 26, 2018
  • by GhazanfarMir
  • Repository
  • 1 Watchers
  • 3 Stars
  • 384 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 55 % Grown

The README.md

Laravel Companies House

Build Status StyleCI License Latest Stable Version Total Downloads, (*1)

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., (*2)

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., (*3)

Installation

To install, use the following to pull the package via Composer., (*4)

composer require ghazanfarmir/laravel-companies-house

Now register the Service Provider in config/app.php, (*5)

'providers' => [

    ...

    GhazanfarMir\CompaniesHouse\CompaniesHouseServiceProvider::class,
],

And also add the alias to the same file., (*6)

'aliases' => [

    ...

    'CompaniesHouse' => GhazanfarMir\CompaniesHouse\Facades\CompaniesHouse::class,
],

Finally publish the config file., (*7)

php artisan vendor:publish

How to use?

use GhazanfarMir\CompaniesHouse\Facades\CompaniesHouse;
CompaniesHouse::search()->all('Ebury');
CompaniesHouse::search()->companies('Ebury');
CompaniesHouse::search()->officers('Ebury');
CompaniesHouse::search()->disqualified_officers('Ebury');

Companies

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

Charges

CompaniesHouse::charges('07086058')->all();
CompaniesHouse::charges('07086058')->find(chargesId);

Filing History

CompaniesHouse::filingHistory('07086058')->all();
CompaniesHouse::filingHistory('07086058')->find('MzE4MjE3NzM2MGFkaXF6a2N4');

Configuration

Obtaining the CompaniesHouse API Key

  • You will need to register an application with CompaniesHouse by visiting https://developer.companieshouse.gov.uk/developer/applications.
  • then get API Key which can be used within your Laravel Application in config/companies.php.

Companies House API (Beta release)

Questions

Feel free to submit an issue if you have any issues., (*8)

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -m 'Add some feature'
  • Push to the branch: git push -u origin my-new-feature
  • Submit a pull request - cheers!

License

MIT License 2017 - Ghazanfar Mir, (*9)

The Versions

26/07 2018

dev-master

9999999-dev

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

19/01 2018

dev-develop

dev-develop

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

24/10 2017

dev-v2beta1

dev-v2beta1

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

20/09 2017

v0.5.0

0.5.0.0

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

03/09 2017

v0.4.0

0.4.0.0

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

30/08 2017

v0.3

0.3.0.0

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

30/08 2017

v0.2-beta

0.2.0.0-beta

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house

30/08 2017

v0.1-beta

0.1.0.0-beta

This the Laravel Service Provider package to access CompaniesHouse API within your Laravel application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ghazanfar Mir

laravel companies-house