PHPackages                             linkorb/lib-hl7v2 - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. linkorb/lib-hl7v2

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

linkorb/lib-hl7v2
=================

HL7v2 Parsing and Generation library

v4.4.0(6y ago)3825[1 issues](https://github.com/linkorb/lib-hl7v2/issues)2MITPHPCI failing

Since Apr 28Pushed 6y ago8 watchersCompare

[ Source](https://github.com/linkorb/lib-hl7v2)[ Packagist](https://packagist.org/packages/linkorb/lib-hl7v2)[ RSS](/packages/linkorb-lib-hl7v2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (7)Versions (23)Used By (2)

HL7v2 Parsing and Generation library
====================================

[](#hl7v2-parsing-and-generation-library)

NOTE: This project is work in progress, the API will change

Build Docker Image
------------------

[](#build-docker-image)

A docker image is available for ease of development. The image contains PHP 7.2 and Composer.

```
$ docker build -t lib-hl7v2-dev .

```

Then you can do, for example:-

```
$ ./run php meta/generateSegments.php
$ ./run vendor/bin/phpunit
$ ./run composer require ...

```

Code generation
---------------

[](#code-generation)

This library uses code generation to generate classes for HL7 DataTypes and Segments from YAML definition files. Documentation, definitions and generator scripts can be found in the [meta/](meta/) directory.

More info and utilities
-----------------------

[](#more-info-and-utilities)

- [Online HL7v2 message parser](http://pathology.healthbase.info/viewer/)
- [HL7 Datatypes](http://www.corepointhealth.com/resource-center/hl7-resources/hl7-data-types)
- [Escape sequences](http://www.hl7standards.com/blog/2006/11/02/hl7-escape-sequences/)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 91.8% 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

Every ~44 days

Recently: every ~2 days

Total

21

Last Release

2424d ago

Major Versions

v1.5.1 → v2.0.02018-03-06

v2.0.1 → v3.0.02019-01-08

v3.1.1 → v4.0.02019-09-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![boite](https://avatars.githubusercontent.com/u/989892?v=4)](https://github.com/boite "boite (56 commits)")[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (5 commits)")

---

Tags

linkorbhl7v2ADThl7v2pipehat

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linkorb-lib-hl7v2/health.svg)

```
[![Health](https://phpackages.com/badges/linkorb-lib-hl7v2/health.svg)](https://phpackages.com/packages/linkorb-lib-hl7v2)
```

###  Alternatives

[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[aranyasen/hl7

HL7 parser, generator and sender.

1951.3M](/packages/aranyasen-hl7)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[php-soap/wsdl-reader

A WSDL reader in PHP

212.3M9](/packages/php-soap-wsdl-reader)[dragon-code/codestyler

A tool to automatically fix Coding Style Standards issues by The Dragon Code.

291.8M16](/packages/dragon-code-codestyler)[psx/schema

Parse and generate data schema formats

57238.7k18](/packages/psx-schema)

PHPackages © 2026

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