Search by

dominservice / ceidg_data_warehouse

dominservice

PHP client for Poland's CEIDG business register data warehouse with searches by NIP, REGON and date range.

Package info

github.com/dominservice/ceidg_data_warehouse

pkg:composer/dominservice/ceidg_data_warehouse

Statistics

Installs: 42

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.3 2022-07-18 10:49 UTC

This package is auto-updated.

Last update: 2026-11-23 20:28:30 UTC


README

Query Poland's CEIDG business register from PHP using the CEIDG Data Warehouse API v2. Look up businesses by NIP or REGON or combine criteria such as dates and location.

Developed by Mateusz Domin at Domin Software.

Latest Version Packagist

Key Features

  • Search by NIP, REGON, date range, location or business status.
  • Retrieve search results and optionally request full company details.
  • Select the CEIDG test or production API when constructing the client.

Requirements

Installation

Use a version that includes the corrected Composer autoload mapping. Release 1.0.3 maps the wrong namespace. The fix is on the development branch described by this README.

composer require dominservice/ceidg_data_warehouse:dev-main

Quick Start

Set CEIDG_API_TOKEN to your CEIDG test API token and replace the example NIP with the business identifier to look up.

require __DIR__ . '/vendor/autoload.php';

use Dominservice\CeidgDataWarehouse\Ceidg;

$ceidg = new Ceidg(getenv('CEIDG_API_TOKEN'), true);
$companies = $ceidg->setNIP('0000000000')->search()->getCompanies();

The second constructor argument selects the test API. search() makes the request and getCompanies() returns the matching records. Additional search criteria can be set before calling search(). Use YYYY-MM-DD for date filters and call clearCriteria() before reusing the client for a new query.

Support

Report package issues on GitHub.

If this package helps you, you can buy me a coffee to support its maintenance.

Buy me a coffee on Ko-fi

License

MIT