How nip24pl/nip24-php-client works
NIP24 Client for PHP combines local Polish/EU identifier validators with authenticated online company and tax-data lookups. A caller invokes the client API, which sends HTTP requests to NIP24 and parses responses into result models; the library also exposes validation, account, invoice, registry, VAT/VIES, whitelist, and IBAN capabilities. The sampled code confirms request/response handling and serializer behavior, but does not show every endpoint method, so those capability branches are grouped at the client level.
Main entry points: NIP24Client.php NIP24 client · ObjectSerializer.php Object serializer · NIP24 Number validators · Model Lookup result models
Components 17
Local validation
- Number validators
NIP24
NIP24 API
- NIP24 client
NIP24/NIP24Client.php - Company lookups
NIP24/NIP24Client.php - VAT and VIES
NIP24/NIP24Client.php - KRS records
NIP24/NIP24Client.php - IBAN status
NIP24/NIP24Client.php - Whitelist status
NIP24/NIP24Client.php - Account and billing
NIP24/NIP24Client.php
Response models
- Lookup result models
NIP24/Model - KRS data models
NIP24/Model/KRSData.php - Company data models
NIP24/Model/AllData.php - VAT entity models
NIP24/Model/VATEntity.php - Billing models
NIP24/Model/BillingPlan.php
Serialization
- Object serializer
NIP24/ObjectSerializer.php - Model contract
NIP24/Model/ModelInterface.php
Other components
- PHP application
- NIP24 service
Connections 16
- PHP application → Number validators: validates locally
- PHP application → NIP24 client: calls API
- NIP24 client → NIP24 service: sends requests
NIP24/NIP24Client.php - NIP24 client → Company lookups: provides lookups
NIP24/NIP24Client.php - NIP24 client → VAT and VIES: provides checks
NIP24/NIP24Client.php - NIP24 client → KRS records: fetches records
NIP24/NIP24Client.php - NIP24 client → IBAN status: checks status
NIP24/NIP24Client.php - NIP24 client → Whitelist status: checks status
NIP24/NIP24Client.php - NIP24 client → Account and billing: exposes account
NIP24/NIP24Client.php - NIP24 service → Lookup result models: returns data
- NIP24 client → Object serializer: uses serializer
NIP24/NIP24Client.php - Object serializer → Model contract: serializes models
NIP24/ObjectSerializer.php - NIP24 client → KRS data models: parses KRS data
NIP24/NIP24Client.php - NIP24 client → Company data models: parses company data
- NIP24 client → VAT entity models: parses VAT data
- NIP24 client → Billing models: uses billing data