PHPackages                             codeitamarjr/laravel-cro-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. codeitamarjr/laravel-cro-api

ActiveLibrary[API Development](/categories/api)

codeitamarjr/laravel-cro-api
============================

Laravel SDK for Ireland's CRO Open Services API.

0.1.1(7mo ago)00MITPHPPHP ^8.1CI passing

Since Nov 17Pushed 1mo agoCompare

[ Source](https://github.com/codeitamarjr/laravel-cro-open-services)[ Packagist](https://packagist.org/packages/codeitamarjr/laravel-cro-api)[ RSS](/packages/codeitamarjr-laravel-cro-api/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Laravel CRO Open Services
=========================

[](#laravel-cro-open-services)

[![Tests](https://github.com/codeitamarjr/laravel-cro-open-services/actions/workflows/tests.yml/badge.svg)](https://github.com/codeitamarjr/laravel-cro-open-services/actions/workflows/tests.yml)

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:

Install
-------

[](#install)

```
composer require codeitamarjr/laravel-cro-open-services
```

Publish the config if you need to override defaults:

```
php artisan vendor:publish --tag=cro-open-services-config
```

Configuration
-------------

[](#configuration)

Set your CRO Open Services credentials in `.env`:

```
CRO_EMAIL=you@example.com
CRO_API_KEY=your-key
```

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
-----

[](#usage)

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

Available methods
-----------------

[](#available-methods)

- `searchCompaniesByNumber(string $companyNumber, string $companyBusIndicator = 'C'): array`
- `searchCompaniesByName(string $companyName, string $companyBusIndicator = 'C', int $searchType = 2, int $skip = 0, int $max = 25): array`
- `searchCompanies(array $parameters): array`
- `getCompanyCount(array $parameters): int`
- `getCompany(string $companyNumber, string $companyBusIndicator = 'c'): array`
- `getCompanySubmissions(string $companyNumber, string $companyBusIndicator = 'c'): array`
- `searchSubmissions(array $parameters): array`
- `getSubmissionCount(array $parameters): int`
- `getSubmission(string $submissionNumber, string $documentNumber): array`
- `searchSubmissionsByCompanyNumber(string $companyNumber, string $companyBusIndicator = 'C'): array`
- `getDataDictionary(): array`

Endpoint coverage:

- `GET /companies`
- `GET /companycount`
- `GET /company/{companyNumber}/{companyBusIndicator}`
- `GET /company/{companyNumber}/{companyBusIndicator}/submissions`
- `GET /submissions`
- `GET /submissioncount`
- `GET /submission/{submissionNumber}/{documentNumber}`

The data dictionary is exposed as a local `Company` and `SubmissionDoc` field map based on CRO's published data dictionary.

Scope
-----

[](#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
-----------------

[](#local-development)

```
composer install
composer test
```

Run the live CRO Open Services smoke test only when credentials are available:

```
export CRO_EMAIL=you@example.com
export CRO_API_KEY=your-key
composer test:live
```

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.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance78

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dea1e9b29f49d63c69e129ab9e08825fd7155c2db0f91824dfd5f165c278b979?d=identicon)[codeitamarjr](/maintainers/codeitamarjr)

---

Top Contributors

[![codeitamarjr](https://avatars.githubusercontent.com/u/78372577?v=4)](https://github.com/codeitamarjr "codeitamarjr (14 commits)")

---

Tags

apilaravelregisterIrelandcro

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codeitamarjr-laravel-cro-api/health.svg)

```
[![Health](https://phpackages.com/badges/codeitamarjr-laravel-cro-api/health.svg)](https://phpackages.com/packages/codeitamarjr-laravel-cro-api)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.3k3](/packages/defstudio-telegraph)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[resend/resend-laravel

Resend for Laravel

1222.7M9](/packages/resend-resend-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53390.0k](/packages/essa-api-tool-kit)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
