Known as Polska Klasyfikacja Działalności (PKD). Package provides list of subclasses with their description for revisions:
- 2004 - NACE Rev 1
- 2007 - NACE Rev 2
- 2025 - NACE Rev 2.1
To check if given PKD exists in given revision:
use SrsBiz\PolishNaceCodes\{Pkd, Version};
$exists = Pkd::isValid('12.34.X', Version::Pkd2025);
To get description of given PKD:
use SrsBiz\PolishNaceCodes\{Pkd, Version};
try {
$description = Pkd::getDescription('62.20.A', Version::Pkd2025);
} catch (\InvalidArgumentException $exception) {
// Given PKD does not exist in this revision
}
To get possible substitutes:
use SrsBiz\PolishNaceCodes\{Pkd, Version};
try {
$pkd = '01.11.Z'
$substitutes = Pkd::migrate($pkd, Version::Pkd2007, Version::Pkd2025);
if ($pkd === $substitutes) {
// Meaning for given PKD was not changed
}
elseif (is_array($substitutes)) {
// List of possible substitutes
}
} catch (\InvalidArgumentException $exception) {
// Given PKD does not exist
}