PHPackages                             yoosuf/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. [File &amp; Storage](/categories/file-storage)
4. /
5. yoosuf/barcode

ActiveLibrary[File &amp; Storage](/categories/file-storage)

yoosuf/barcode
==============

Production-ready Laravel barcode package with pluggable drivers, filesystem support, and API-friendly outputs.

1.0.0(1mo ago)10MITPHPPHP ^8.1

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/yoosuf/barcode)[ Packagist](https://packagist.org/packages/yoosuf/barcode)[ Docs](https://github.com/yoosuf/barcode)[ GitHub Sponsors](https://github.com/yoosuf)[ RSS](/packages/yoosuf-barcode/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

yoosuf/barcode
==============

[](#yoosufbarcode)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![PHP](https://camo.githubusercontent.com/63f4496656b9cc2ffb21b45d7017e6aee05d1c13f1b41d1e1c8b4d939c5e2708/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d3737376262342e737667)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/7e1d223572c8ad2428721fb5138501db9b0484a8fd2e7383eda9458028c3c2c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d3130253230253743253230313125323025374325323031322d6666326432302e737667)](https://laravel.com/)

Production-ready Laravel barcode package with pluggable drivers, filesystem support, and API-friendly outputs.

Why This Package
----------------

[](#why-this-package)

- Laravel-native integration with auto-discovery, facade, and config publishing.
- Stable manager and driver contract for long-term compatibility.
- Multiple output modes suitable for APIs, Blade views, jobs, and document pipelines.
- Easy custom driver extension without touching package internals.
- Works with modern Laravel versions while preserving simple integration points.
- Supports standard 1D barcode symbologies through Picqer.

Compatibility
-------------

[](#compatibility)

- PHP: `^8.1`
- Laravel: `^10.0 | ^11.0 | ^12.0`

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

[](#installation)

```
composer require yoosuf/barcode
```

Optional: publish configuration.

```
php artisan vendor:publish --tag=barcode-config
```

Quick Start
-----------

[](#quick-start)

```
use Yoosuf\Barcode\Facades\Barcode;

$svg = Barcode::render('SO-1001')->contents;

$dataUri = Barcode::dataUri('SO-1001', 'png', [
    'type' => 'TYPE_CODE_128',
    'width' => 2,
    'height' => 80,
]);

$storedPath = Barcode::save('barcodes/so-1001.svg', 'SO-1001', 'svg');
```

CLI
---

[](#cli)

Generate a barcode from Artisan and save it to disk:

```
php artisan barcode:generate SO-1001 --driver=svg --output=storage/app/barcodes/so-1001.svg
```

You can also print SVG or HTML output directly to the terminal:

```
php artisan barcode:generate SO-1001 --driver=svg
```

Core Architecture
-----------------

[](#core-architecture)

- `BarcodeServiceProvider`: package registration, config merge, and publish.
- `BarcodeManager`: driver resolution, option merge, rendering, persistence.
- `Contracts\BarcodeDriver`: unified contract for all drivers.
- `Drivers\*`: built-in engine implementations.
- `Support\BarcodeResult`: output payload + metadata.

For complete details, see the architecture guide.

Documentation Index
-------------------

[](#documentation-index)

- Architecture: [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md)
- API Reference: [docs/API.md](docs/API.md)
- Configuration: [docs/CONFIGURATION.md](docs/CONFIGURATION.md)
- Usage Guide: [docs/USAGE.md](docs/USAGE.md)
- Extending Drivers: [docs/EXTENDING.md](docs/EXTENDING.md)
- Operations: [docs/OPERATIONS.md](docs/OPERATIONS.md)
- Contributing: [CONTRIBUTING.md](CONTRIBUTING.md)
- Changelog: [CHANGELOG.md](CHANGELOG.md)

GitHub Repository Metadata
--------------------------

[](#github-repository-metadata)

Use this description for the GitHub repository:

`Production-ready Laravel barcode package with pluggable drivers, filesystem support, and API-friendly outputs.`

Recommended GitHub topics:

- `laravel`
- `laravel-package`
- `barcode`
- `php`
- `code128`
- `ean13`
- `upc`
- `code39`
- `code93`
- `itf14`
- `msi`
- `svg`
- `png`
- `api`
- `filesystem`

Supported Barcode Types
-----------------------

[](#supported-barcode-types)

The package exposes the full 1D symbology set supported by Picqer:

- `TYPE_CODE_32`
- `TYPE_CODE_39`
- `TYPE_CODE_39_CHECKSUM`
- `TYPE_CODE_39E`
- `TYPE_CODE_39E_CHECKSUM`
- `TYPE_CODE_93`
- `TYPE_STANDARD_2_5`
- `TYPE_STANDARD_2_5_CHECKSUM`
- `TYPE_INTERLEAVED_2_5`
- `TYPE_INTERLEAVED_2_5_CHECKSUM`
- `TYPE_ITF_14`
- `TYPE_CODE_128`
- `TYPE_CODE_128_A`
- `TYPE_CODE_128_B`
- `TYPE_CODE_128_C`
- `TYPE_EAN_2`
- `TYPE_EAN_5`
- `TYPE_EAN_8`
- `TYPE_EAN_13`
- `TYPE_UPC_A`
- `TYPE_UPC_E`
- `TYPE_MSI`
- `TYPE_MSI_CHECKSUM`
- `TYPE_POSTNET`
- `TYPE_PLANET`
- `TYPE_TELEPEN_ALPHA`
- `TYPE_TELEPEN_NUMERIC`
- `TYPE_RMS4CC`
- `TYPE_KIX`
- `TYPE_IMB`
- `TYPE_CODABAR`
- `TYPE_CODE_11`
- `TYPE_PHARMA_CODE`
- `TYPE_PHARMA_CODE_TWO_TRACKS`

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

45d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/64164?v=4)[Yoosuf Mo](/maintainers/yoosuf)[@yoosuf](https://github.com/yoosuf)

---

Top Contributors

[![yoosuf](https://avatars.githubusercontent.com/u/64164?v=4)](https://github.com/yoosuf "yoosuf (2 commits)")

---

Tags

apibarcodecode128ean13filesystemlaravellaravel-packagephppngqr-codesvgupcqr codeapifilesystemlaravelgeneratorlaravel-packagesvgbarcodepngEAN13CODABARupccode128

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.5k](/packages/craftcms-cms)[picqer/php-barcode-generator

An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.

1.8k30.6M140](/packages/picqer-php-barcode-generator)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

4033.1k](/packages/linkxtr-laravel-qrcode)[laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

1.8k59.4M474](/packages/laravel-fortify)[hasinhayder/tyro-login

Complete authentication kit for Laravel 12 &amp; 13 — 10 premium layouts, social OAuth, passkeys, TOTP 2FA, OTP, magic links, invitations, lockout, captcha and beautiful emails

2539.7k8](/packages/hasinhayder-tyro-login)

PHPackages © 2026

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