PHPackages                             ptachoire/php-dmtx - 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. ptachoire/php-dmtx

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

ptachoire/php-dmtx
==================

Datamatrix r/w based on libdmtx &lt;http://www.libdmtx.org/&gt;

1.4.0(3y ago)1868.3k↑15.4%7[1 PRs](https://github.com/krichprollsch/php-dmtx/pulls)MITPHP

Since Nov 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/krichprollsch/php-dmtx)[ Packagist](https://packagist.org/packages/ptachoire/php-dmtx)[ RSS](/packages/ptachoire-php-dmtx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (8)Used By (0)

php-dmtx
========

[](#php-dmtx)

Datamatrix reader/writer based on [libdmtx](https://github.com/dmtx).

⚠️ The installation of [dmtx-utils](https://github.com/dmtx/dmtx-utils) is required to use the lib.

Install
-------

[](#install)

```
composer require "ptachoire/php-dmtx:*"
```

Usage
-----

[](#usage)

```
use Dmtx\Writer;

$writer = new Writer();

//encode message into file
$writer->encode('this is a message')
    ->saveAs('/tmp/image.png');

//encode message and output image
echo $writer->encode('this is a message')
    ->dump();
```

```
use Dmtx\Reader;

$reader = new Reader();

//decode message from data
$reader->decode($encoded_value);

//decode message from file
echo $reader->decodeFile('/tmp/image.png');
```

Test
----

[](#test)

```
composer install
./vendor/bin/phpunit
```

Credits
-------

[](#credits)

Project structure inspired by [Negotiation](https://github.com/willdurand/Negotiation) by [willdurand](https://github.com/willdurand).

License
-------

[](#license)

php-dmtx is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~510 days

Recently: every ~706 days

Total

7

Last Release

1132d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03b34baa5c7073b98dbf5c67e621f8467aa6178ccb84305e9e67090391f1fd99?d=identicon)[krichprollsch](/maintainers/krichprollsch)

---

Top Contributors

[![krichprollsch](https://avatars.githubusercontent.com/u/562696?v=4)](https://github.com/krichprollsch "krichprollsch (15 commits)")[![kamicloud](https://avatars.githubusercontent.com/u/10206616?v=4)](https://github.com/kamicloud "kamicloud (1 commits)")[![pmaselkowski](https://avatars.githubusercontent.com/u/520283?v=4)](https://github.com/pmaselkowski "pmaselkowski (1 commits)")[![silasrm](https://avatars.githubusercontent.com/u/197187?v=4)](https://github.com/silasrm "silasrm (1 commits)")[![zippex](https://avatars.githubusercontent.com/u/7262177?v=4)](https://github.com/zippex "zippex (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ptachoire-php-dmtx/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[symfony/ldap

Provides a LDAP client for PHP on top of PHP's ldap extension

1407.5M46](/packages/symfony-ldap)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[vaimo/composer-changelogs

Provide information about package changes based on changelog files that are bundled with releases; provide tools for generating documentation files from changelog sources

11150.5k10](/packages/vaimo-composer-changelogs)

PHPackages © 2026

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