PHPackages                             mawo/barcode - 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. mawo/barcode

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

mawo/barcode
============

Create 2D data matrix

0121[1 issues](https://github.com/mawo/barcode/issues)PHP

Since May 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mawo/barcode)[ Packagist](https://packagist.org/packages/mawo/barcode)[ RSS](/packages/mawo-barcode/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

barcode
=======

[](#barcode)

Generate GS1 compatible Data Matrix with multiple code blocks divided by fnc1.

The only supported function is "getSvg()"

If you don't need multiple data blocks and want more features (e.g. other output formats) have a look at

Example:
--------

[](#example)

```
$options=[
    'gs1' => true,
    'fnc1char' => '~',
    'rect' => false,
];
$bc = new Mawo\Barcode\Encoder\DataMatrixEncoder;
$data = '~1234567890123456789012~ABC123DEFGHIJKLMNOP456789QRSTUVWXY~1234567890';
echo $bc->getSvg($data, $options);

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d51f7aec1b91416b7af7e287acc86950c41f6e08438e9ec8c2725181de4ceff8?d=identicon)[skanto](/maintainers/skanto)

---

Top Contributors

[![mawo](https://avatars.githubusercontent.com/u/1675936?v=4)](https://github.com/mawo "mawo (9 commits)")

### Embed Badge

![Health badge](/badges/mawo-barcode/health.svg)

```
[![Health](https://phpackages.com/badges/mawo-barcode/health.svg)](https://phpackages.com/packages/mawo-barcode)
```

PHPackages © 2026

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