|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 54 This week: 1||All time: 10,499 This week: 363|
This package is specific mainly for applications used in United Kingdom
This package can be used to find companies in the Companies House Database.
It can send HTTP requests to the Companies House Database API to find companies from the United Kingdom by their name or identifier.
The class can return company details like the name, type, status, address and date of creation.
|Many business need to support other companies in a secure way. Usually they need to verify if those other companies are legitimate and are active.
This package provides a solution to perform such kind of verification in quick and easy way by accessing the Companies House Database API available for companies in the United Kingdom.
This way, this package can simplify the process of companies work with other companies with greater security.
* @author Pierre-Henry Soria <firstname.lastname@example.org>
* @copyright (c) 2017, Pierre-Henry Soria. All Rights Reserved.
* @license GNU General Public License; <https://www.gnu.org/licenses/gpl-3.0.en.html>
require __DIR__ . '/../vendor/autoload.php';
// PHP 7+
$oDotEnv = new Dotenv(dirname(__DIR__));
$oLogger = new Logger('CompaniesLookup');
$oLogger->pushHandler(new StreamHandler("php://stdout", Logger::DEBUG));
$oApp = new Application(
"Welcome to \"Companies House\" lookup console interface.\n\n",
$oClient = new Client(getenv('COMPANIES_HOUSE_API_KEY'));
$aCommands = [
Simple and fast tool to find companies (from their Company Number or Company Name).
I realized there was no such console tools for finding a company from Companies House database (similar to the Unix whois command for finding the domain names' details).
Be sure PHP 7.0 or higher is installed
Install Composer (https://getcomposer.org)
$ composer install
Rename `.env.example` to `.env`
$ mv .env.example .env
Request your Companies House API key => https://developer.companieshouse.gov.uk/developer/applications
Open the file (with your favourite text editor)
$ nano .env
Add the Companies House API Key between the double quote `"` `"`
Change the permissions of the `companies` bash file (if you use the bash shortcut file)
$ chmod u+x ./companies
$ ./companies <COMPANY_NAME / COMPANY_ID>
php bin/companies companies:search <COMPANY_NAME / COMPANY_ID>
Example to find HSBC company
With the Company Name:
$ ./companies HSBC
Or with the Company ID:
$ ./companies 06388542
I'm Pierre-Henry Soria, Software Engineer (love that!) and also passionate about marketing and e-businesses.
Where to contact me?
You can by email at pierrehenrysoria+github [[AT]] gmail [[D0T]] com
Under General Public License 3 or later.
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.