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

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

cccaimingjian/human-barcode
===========================

Generate more human-readable barcodes. 生成更便于人类阅读的条码

1.1.0(2y ago)010MITPHPPHP ~7.4|~8.0

Since May 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cccaimingjian/human-barcode)[ Packagist](https://packagist.org/packages/cccaimingjian/human-barcode)[ RSS](/packages/cccaimingjian-human-barcode/feed)WikiDiscussions main Synced 1mo ago

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

human-barcode
=============

[](#human-barcode)

Generate more human-readable barcodes. 生成更便于人类阅读的条码。
THIS PROJECT require picqer/php-barcode-generator

Just BARCODE
------------

[](#just-barcode)

[![just-barcode.png](demo%2Fjust-barcode.png)](demo%2Fjust-barcode.png)

human-readable BARCODE
----------------------

[](#human-readable-barcode)

#### with content text and a Line in the middle of the barcode and text content

[](#with-content-text-and-a-line-in-the-middle-of-the-barcode-and-text-content)

[![human-barcode.png](demo%2Fhuman-barcode.png)](demo%2Fhuman-barcode.png)

Line Left side Detail
---------------------

[](#line-left-side-detail)

#### with a short vertical lines

[](#with-a-short-vertical-lines)

[![left.png](demo%2Fleft.png)](demo%2Fleft.png)

Line Right side Detail
----------------------

[](#line-right-side-detail)

#### with a short vertical lines

[](#with-a-short-vertical-lines-1)

[![right.png](demo%2Fright.png)](demo%2Fright.png)
The line in the middle of the barcode and text content is used to confirm whether the barcode is correct after printing. If it is broken, or the vertical lines at both ends are not there, it shows that there is a problem with the printer and the barcode may not be recognized correctly.
条码与文字内容中间的线，是用来确认打印后条码是否正确的。如果断了,或者两端的竖线没有，则显示说明打印机有问题，条码不一定能被正确识别。

### Here is simple USAGE

[](#here-is-simple-usage)

```
$human_barcode = new \cccaimingjian\HumanBarcode\HumanBarcode();
$barcode_image_content = $human_barcode->createHumanBarcode('A-B-C-D-1-2-3456789');
$barcode_image_base64 = base64_encode($barcode_image_content);
```

### Mix Usage

[](#mix-usage)

```
$generator = new Picqer\Barcode\BarcodeGeneratorPNG();
//...
$barcode_text = 'TYPE-CODE-128';
$barcode_image_content_WITHOUT_TEXT =  $generator->getBarcode($barcode_text, $generator::TYPE_CODE_128);
$human_barcode = new \cccaimingjian\HumanBarcode\HumanBarcode();
$human_barcode->setBarcodeData($barcode_image_WITHOUT_TEXT);
$human_barcode->setBarcodeText($barcode_text);
$barcode_image_content = $human_barcode->drawBarcodeText();
$barcode_image_base64 = base64_encode($barcode_image_content);
```

```
//Save
file_put_contents('PATH',$barcode_image_content);
```

```

```

For ALL USAGE, Please read picqer/php-barcode-generator's document.
-------------------------------------------------------------------

[](#for-all-usage-please-read-picqerphp-barcode-generators-document)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Every ~12 days

Total

3

Last Release

1073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c4707a88908ec86f8c9d50567be189ffadc128e8ffc7be505fb0ae49c04e7d9?d=identicon)[cccaimingjian](/maintainers/cccaimingjian)

---

Top Contributors

[![cccaimingjian](https://avatars.githubusercontent.com/u/53326339?v=4)](https://github.com/cccaimingjian "cccaimingjian (11 commits)")

---

Tags

barcodes

### Embed Badge

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

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

###  Alternatives

[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[bitgrave/barcode-bundle

provide barcode rendering service into your Symfony2 application.

25444.0k1](/packages/bitgrave-barcode-bundle)[proner/phppimaco

Lib para geração de Etiquetas PIMACO

7470.0k](/packages/proner-phppimaco)[antwerpes/barcodes-1d

Library for programmatically creating and rendering barcodes

258.7k](/packages/antwerpes-barcodes-1d)[junohamburg/kirby-reload-on-save

Kirby Reload On Save

293.4k](/packages/junohamburg-kirby-reload-on-save)

PHPackages © 2026

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