Download the PHP package codeitamarjr/laravel-cro-api without Composer
On this page you can find all versions of the php package codeitamarjr/laravel-cro-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-cro-api
Laravel CRO Open Services
A small Laravel SDK for Ireland's CRO Open Services API.
CRO Open Services is the Companies Registration Office REST API for integrating company and submission data into applications. This package exposes a Laravel HTTP client, service container binding, and facade for the public Open Services endpoints under /cws.
Official service: https://services.cro.ie/
Install
Publish the config if you need to override defaults:
Configuration
Set your CRO Open Services credentials in .env:
More explicit CRO_OPEN_SERVICES_EMAIL and CRO_OPEN_SERVICES_KEY variables are also supported if you want to separate this SDK from older app configuration later.
Usage
Available methods
searchCompaniesByNumber(string $companyNumber, string $companyBusIndicator = 'C'): arraysearchCompaniesByName(string $companyName, string $companyBusIndicator = 'C', int $searchType = 2, int $skip = 0, int $max = 25): arraysearchCompanies(array $parameters): arraygetCompanyCount(array $parameters): intgetCompany(string $companyNumber, string $companyBusIndicator = 'c'): arraygetCompanySubmissions(string $companyNumber, string $companyBusIndicator = 'c'): arraysearchSubmissions(array $parameters): arraygetSubmissionCount(array $parameters): intgetSubmission(string $submissionNumber, string $documentNumber): arraysearchSubmissionsByCompanyNumber(string $companyNumber, string $companyBusIndicator = 'C'): arraygetDataDictionary(): array
Endpoint coverage:
GET /companiesGET /companycountGET /company/{companyNumber}/{companyBusIndicator}GET /company/{companyNumber}/{companyBusIndicator}/submissionsGET /submissionsGET /submissioncountGET /submission/{submissionNumber}/{documentNumber}
The data dictionary is exposed as a local Company and SubmissionDoc field map based on CRO's published data dictionary.
Scope
This package targets CRO Open Services. It does not attempt to wrap unrelated Irish company APIs, screen-scrape CORE pages, or provide paid document-streaming helpers until those endpoints are explicitly modelled and tested.
Local development
Run the live CRO Open Services smoke test only when credentials are available:
If no credentials are exported, the live test uses CRO's official public test credential pair. It checks company number 83740 with company/business indicator C, verifies that /company/83740/c returns the documented FOSTER WHEELER IRELAND LIMITED payload shape, verifies numeric /companies search for 83740, verifies name /companies search for ryanair, and exercises CRO's documented examples for company count, submission search, submission count, and one submission document.
All versions of laravel-cro-api with dependencies
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0