定制 srsbiz/polish-nace-codes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

srsbiz/polish-nace-codes

最新稳定版本:v1.1.0

Composer 安装命令:

composer require srsbiz/polish-nace-codes

包简介

Current and past PKD codes with description

README 文档

README

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

Usage

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
}

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-09