PHPackages                             adamgaskins/barcoder - 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. [Image &amp; Media](/categories/media)
4. /
5. adamgaskins/barcoder

ActiveLibrary[Image &amp; Media](/categories/media)

adamgaskins/barcoder
====================

A classy package to generate SVG barcodes for the web.

v0.1.0(5y ago)686.2k[2 issues](https://github.com/AdamGaskins/barcoder/issues)MITPHPPHP ^7.4|^8.0

Since Jan 6Pushed 5y ago3 watchersCompare

[ Source](https://github.com/AdamGaskins/barcoder)[ Packagist](https://packagist.org/packages/adamgaskins/barcoder)[ Docs](https://github.com/adamgaskins/barcoder)[ GitHub Sponsors](https://github.com/adamgaskins)[ RSS](/packages/adamgaskins-barcoder/feed)WikiDiscussions main Synced 3w ago

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

[![](assets/logo.svg)](https://github.com/AdamGaskins/barcoder)

A classy package to generate SVG barcodes for the web.

 [![](https://camo.githubusercontent.com/e10abe1a87cd518719ca9dad47a5ebb83017691901fe9f1dd1b6ab4de1d52c75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6164616d6761736b696e732f626172636f6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/adamgaskins/barcoder) [![](https://camo.githubusercontent.com/57735b1e1f2953817e8bda7071cb6c9b2d5bf7398dc5f34e83f2ead945a84bff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6164616d6761736b696e732f626172636f6465722f54657374733f6c6f676f3d476974687562267374796c653d666c61742d737175617265266c6162656c3d7465737473)](https://github.com/adamgaskins/barcoder/actions?query=workflow%3ATests+branch%3Amaster)

[![](assets/demo.gif)](https://github.com/AdamGaskins/barcoder)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require adamgaskins/barcoder
```

Usage
-----

[](#usage)

See below for a full list of supported barcode types.

#### QR Code

[](#qr-code)

```
Barcoder::qrcode('data to encode')->toSvg();
```

#### Datamatrix

[](#datamatrix)

```
Barcoder::datamatrix('data to encode')->toSvg();
```

#### Code 128

[](#code-128)

```
Barcoder::code128('data to encode')->toSvg();

Barcoder::code128('data to encode')->hideLabel()->toSvg();
```

#### EAN-8

[](#ean-8)

```
Barcoder::ean8('12345678')->toSvg();

Barcoder::ean8('12345678')->hideLabel()->toSvg();
```

#### EAN-13

[](#ean-13)

```
Barcoder::ean8('1234567890123')->toSvg();

Barcoder::ean8('1234567890123')->hideLabel()->toSvg();
```

#### UPC-A

[](#upc-a)

```
Barcoder::upca('123456789012')->toSvg();

Barcoder::upca('123456789012')->hideLabel()->toSvg();
```

#### UPC-E

[](#upc-e)

```
Barcoder::upce('123456')->toSvg();

Barcoder::upce('123456')->hideLabel()->toSvg();
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1995d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63884672ecd65deace8ca6f9247e039c8d1149c46d1b81e840d201313e032252?d=identicon)[AdamGaskins](/maintainers/AdamGaskins)

---

Top Contributors

[![AdamGaskins](https://avatars.githubusercontent.com/u/1180782?v=4)](https://github.com/AdamGaskins "AdamGaskins (19 commits)")

---

Tags

barcodebarcode-generatorlaraveladamgaskinsbarcoder

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/adamgaskins-barcoder/health.svg)

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

###  Alternatives

[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154177.4k](/packages/classic-o-nova-media-library)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14849.5k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.7k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

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