PHPackages                             kyleweishaupt/php-icd10 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kyleweishaupt/php-icd10

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kyleweishaupt/php-icd10
=======================

PHP ICD-10 Parser

0.0.1(3y ago)161MITPHPPHP &gt;=8.1

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kyleweishaupt/php-icd10)[ Packagist](https://packagist.org/packages/kyleweishaupt/php-icd10)[ Docs](https://github.com/kyleweishaupt/php-icd10)[ RSS](/packages/kyleweishaupt-php-icd10/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP ICD-10 Parser
=================

[](#php-icd-10-parser)

PHP library for parsing [CMS Medicare ICD-10 Codes](https://www.cms.gov/Medicare/Coding/ICD10).

Install
-------

[](#install)

Using [Composer](https://getcomposer.org/) to install:

```
composer require kyleweishaupt/php-icd10

```

Usage
-----

[](#usage)

```
use ICD10Parser\ICD10Parser;

// From ordered .txt file
$filePath = __DIR __ . "/data/icd10cm_order_2023.txt";
$orderedCodes = ICD10Parser::fromFile($filePath)->toArray();

// Get the first code in the file
$firstCode = $orderedCodes[0];
var_dump($firstCode);

// object(ICD10Parser\ICD10CodeOrdered) {
//   ["order"]=> int(1)
//   ["code"] =>string(3) "A00"
//   ["valid"] => bool(false)
//   ["shortDescription"] => string(7) "Cholera"
//   ["longDescription"] => string(7) "Cholera"
// }

// Get code with decimal as string
$code = $firstCode->codeFormatted(); // A001 -> A00.1

// Or get from string contents (in case file loaded or ephemeral, etc.)
$orderedCodes = ICD10Parser::fromString($stringContents)->toArray();
```

Contributing
------------

[](#contributing)

This may or may not be maintained in the future. If you need this functionality for a production environment, I highly recommend forking the repository.

License
-------

[](#license)

This package is NOT affiliated with CMS and/or the U.S. government in any way, shape or form. There is no warranty whatsoever and using this package is entirely at your own risk. Any nefarious or malicious use is strictly forbidden.

Copyright (c) 2023-present, Licensed under [The MIT License](http://www.opensource.org/licenses/mit-license.php).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1137d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/233199b4aba5f2c6e54bf291778af10669c6165737fec2068887d74a67014193?d=identicon)[kyleweishaupt](/maintainers/kyleweishaupt)

---

Top Contributors

[![kyleweishaupt](https://avatars.githubusercontent.com/u/4227380?v=4)](https://github.com/kyleweishaupt "kyleweishaupt (3 commits)")

---

Tags

helpercmsICD-10

### Embed Badge

![Health badge](/badges/kyleweishaupt-php-icd10/health.svg)

```
[![Health](https://phpackages.com/badges/kyleweishaupt-php-icd10/health.svg)](https://phpackages.com/packages/kyleweishaupt-php-icd10)
```

###  Alternatives

[minwork/array

Pack of advanced array functions specifically tailored for: associative (assoc) array, multidimensional array, array of objects and handling nested array elements

66256.1k5](/packages/minwork-array)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
