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)1869.9k—8.3%7[1 PRs](https://github.com/krichprollsch/php-dmtx/pulls)MITPHPCI failing

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 3d 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 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

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

1180d 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.5k251.2M25.3k](/packages/friendsofphp-php-cs-fixer)[symfony/rate-limiter

Provides a Token Bucket implementation to rate limit input and output in your application

27054.3M291](/packages/symfony-rate-limiter)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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