PHP code example of dcblogdev / laravel-companies-house

1. Go to this page and download the library: Download dcblogdev/laravel-companies-house library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dcblogdev / laravel-companies-house example snippets


php artisan vendor:publish --provider="Dcblogdev\CompaniesHouse\CompaniesHouseServiceProvider" --tag="config"



return [

    /*
    * the key is set from the Companies House to identify the application
    * https://developer.companieshouse.gov.uk/developer/applications
    */
    'key' => env('COMPANIES_HOUSE_KEY'),
];

CompaniesHouse::get('path');

CompaniesHouse::get('company/123456');

CompaniesHouse::search($term)

CompaniesHouse::searchCompany($term)

CompaniesHouse::searchOfficer($term)

CompaniesHouse::searchOfficerDisqualified($term)

CompaniesHouse::getCompany($companyNumber)

CompaniesHouse::getCompanyAddress($companyNumber)

CompaniesHouse::getCompanyOfficer($companyNumber)

CompaniesHouse::getCompanyFiling($companyNumber)

CompaniesHouse::getCompanyFilingItem($companyNumber)

CompaniesHouse::getCompanyInsolvency($companyNumber)

CompaniesHouse::getCompanyCharge($companyNumber)

CompaniesHouse::getCompanyChargeItem($companyNumber)

CompaniesHouse::getCompanyEstablishment($companyNumber)

CompaniesHouse::getCompanyRegister($companyNumber)

CompaniesHouse::getCompanyExemption(($companyNumber)

CompaniesHouse::getOfficerAppointment($officerId)

CompaniesHouse::getOfficerDisqualification($officerId)

CompaniesHouse::getOfficerDisqualificationCorp($officerId)