PHP code example of codeitamarjr / laravel-cro-api
1. Go to this page and download the library: Download codeitamarjr/laravel-cro-api 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/ */
codeitamarjr / laravel-cro-api example snippets
use Codeitamarjr\LaravelCroOpenServices\CroOpenServicesClient;
use Codeitamarjr\LaravelCroOpenServices\Facades\CroOpenServices;
public function show(CroOpenServicesClient $cro)
{
$companies = $cro->searchCompaniesByNumber('123456');
$matches = $cro->searchCompaniesByName('ryanair');
$count = $cro->getCompanyCount(['company_name' => 'smith']);
}
$company = CroOpenServices::getCompany('123456');
$submission = CroOpenServices::getSubmission('6191121', '2');
$submissions = CroOpenServices::getCompanySubmissions('123456');
$submissionCount = CroOpenServices::getSubmissionCount(['company_num' => '54512', 'company_bus_ind' => 'c']);
$latestByType = CroOpenServices::searchSubmissionsByCompanyNumber('123456');
$dictionary = CroOpenServices::getDataDictionary();