dominservice / ceidg_data_warehouse
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
Requires
- ext-curl: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.
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
- PHP with the cURL extension.
- A CEIDG Data Warehouse API token. See the official integration guide.
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.