chernegasergiy/nk-025-2021-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

chernegasergiy/nk-025-2021-parser

最新稳定版本:v0.1.0

Composer 安装命令:

composer require chernegasergiy/nk-025-2021-parser

包简介

A PHP library to parse the NK-025-2021 medical classifications from meddata.pp.ua.

README 文档

README

Latest Stable Version Total Downloads License

A PHP library to parse the NK-025-2021 medical classifications from meddata.pp.ua.

Installation

You can install the package via Composer:

composer require chernegasergiy/nk-025-2021-parser

Usage

The parse() method returns a ClassificationCollection object which you can iterate over, or use the finder methods to search for specific classifications.

Basic Usage

<?php require 'vendor/autoload.php'; use ChernegaSergiy\Nk0252021Parser\Parser; $parser = new Parser(); try { $classifications = $parser->parse(); // Iterate over all classifications foreach ($classifications as $classification) { echo $classification->name_ua . PHP_EOL; } // Get the total count echo "Total classifications: " . count($classifications) . PHP_EOL; } catch (Exception $e) { echo 'Error: ' . $e->getMessage(); }

Finding a Classification

You can find a classification by its code or specific code.

<?php // ... $cholera = $parser->findByCode('A00'); echo $cholera->name_ua; // Холера $choleraBiotar = $parser->findBySpecificCode('A00.0'); echo $choleraBiotar->name_ua; // Холера, спричинена холерним вібріоном 01, biovar cholera

Searching for Classifications

You can search for classifications by name (in either Ukrainian or English).

<?php // ... $results = $parser->searchByName('тиф'); foreach ($results as $result) { echo $result->specific_code . ': ' . $result->specific_name_ua . PHP_EOL; }

Contributing

Contributions are welcome and appreciated! Here's how you can contribute:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and adhere to the existing coding style.

License

This library is licensed under the CSSM Unlimited License v2.0 (CSSM-ULv2). See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LicenseRef-CSSM-Unlimited-2.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固