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

ActiveLibrary

ageekdev/laravel-barcode
========================

laravel barcode generator

v2.0.0(1mo ago)1320.3k↑22.3%1MITPHPPHP ^8.2CI passing

Since Feb 2Pushed 1mo ago2 watchersCompare

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

READMEChangelog (6)Dependencies (22)Versions (11)Used By (0)

Laravel Barcode
===============

[](#laravel-barcode)

 [![](https://camo.githubusercontent.com/5305360859ce78c2a2150db9c186997291aca04e8a0209b56fd8abd35e964be7/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230426172636f64652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d616765656b6465762532466c61726176656c2d626172636f6465267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d47656e65726174652b626172636f6465732b656173696c792b696e2b796f75722b4c61726176656c2b6170706c69636174696f6e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d626172636f6465267769647468733d32303026686569676874733d323030)](https://camo.githubusercontent.com/5305360859ce78c2a2150db9c186997291aca04e8a0209b56fd8abd35e964be7/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c253230426172636f64652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d616765656b6465762532466c61726176656c2d626172636f6465267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d47656e65726174652b626172636f6465732b656173696c792b696e2b796f75722b4c61726176656c2b6170706c69636174696f6e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d626172636f6465267769647468733d32303026686569676874733d323030)

 [![Latest Version on Packagist](https://camo.githubusercontent.com/d050ef7e3dec7d47dd22e9dc3f2f90067310fbf2f532af503cec86199ef8875b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616765656b6465762f6c61726176656c2d626172636f64652e7376673f7374796c653d666c61742d737175617265266c6f676f3d5061636b6167697374)](https://packagist.org/packages/ageekdev/laravel-barcode) [![GitHub Tests Action Status](https://camo.githubusercontent.com/a821aab8fce2abb537fe477e1bea4de59afd5ac5761f28c81cb3ab5aef13aded/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616765656b6465762f6c61726176656c2d626172636f64652f72756e2d74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/ageekdev/laravel-barcode/actions/workflows/run-tests.yml) [![Total Downloads](https://camo.githubusercontent.com/e76436c36de107feae54a280735e920c67f8e61ab6c3a31590acdd4a63f176ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616765656b6465762f6c61726176656c2d626172636f64652e7376673f7374796c653d666c61742d737175617265266c6f676f3d5061636b6167697374)](https://packagist.org/packages/ageekdev/laravel-barcode) [![Laravel 9.x](https://camo.githubusercontent.com/fcc1e72030f9ea6a823e9fcd3f7bd00c53d704813a7081d0e18baccea8209bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d392e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/9.x) [![Laravel 10.x](https://camo.githubusercontent.com/77d579450465c8f91cf6e423135e0e63f0a86228512e20ee1f9f85dad715bfe1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31302e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/10.x) [![Laravel 11.x](https://camo.githubusercontent.com/6af540d86774b68377b5404150551aad9a1c12ae64d639fe671176a7192d794a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31312e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/11.x) [![Laravel 12.x](https://camo.githubusercontent.com/19d5bb0370853f3f5f64da8e47f7b2e14803b7fa5f7c8d04e347ac6849edb9ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e782d7265642e7376673f7374796c653d666c61742d737175617265)](https://laravel.com/docs/12.x)

Laravel Barcode Generator
=========================

[](#laravel-barcode-generator)

A package to generate barcodes in various formats (SVG, PNG, JPG, HTML) for Laravel applications.

⚙️ Installation
---------------

[](#️-installation)

You can install the package via Composer:

```
composer require ageekdev/laravel-barcode
```

You can publish the config file with:

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

Usage
-----

[](#usage)

```
use AgeekDev\Barcode\Facades\Barcode;
use AgeekDev\Barcode\Enums\BarcodeType;

$barcode = Barcode::imageType("svg")
                ->foregroundColor("#000000")
                ->height(30)
                ->widthFactor(2)
                ->type(BarcodeType::CODE_128)
                ->generate("081231723897");
```

Accepted barcode types
----------------------

[](#accepted-barcode-types)

These barcode types are supported. All types support different character sets or have mandatory lengths. Please see wikipedia for supported chars and lengths per type.

Most used types are CODE\_128 and CODE\_39. Because of the best scanner support, variable length and most chars supported.

- CODE\_32 (italian pharmaceutical code 'MINSAN')
- CODE\_39
- CODE\_39\_CHECKSUM
- CODE\_39E
- CODE\_39E\_CHECKSUM
- CODE\_93
- STANDARD\_2\_5
- STANDARD\_2\_5\_CHECKSUM
- INTERLEAVED\_2\_5
- INTERLEAVED\_2\_5\_CHECKSUM
- CODE\_128
- CODE\_128\_A
- CODE\_128\_B
- CODE\_128\_C
- EAN\_2
- EAN\_5
- EAN\_8
- EAN\_13
- UPC\_A
- UPC\_E
- MSI
- MSI\_CHECKSUM
- POSTNET
- PLANET
- RMS4CC
- KIX
- IMB
- CODABAR
- CODE\_11
- PHARMA\_CODE
- PHARMA\_CODE\_TWO\_TRACKS

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/ageekdev/laravel-barcode/blob/main/.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

This package contains code copied from [PHP Barcode Generator](https://github.com/picqer/php-barcode-generator)

License
-------

[](#license)

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

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance89

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~229 days

Recently: every ~285 days

Total

6

Last Release

56d ago

Major Versions

v1.3.0 → v2.0.02026-03-23

PHP version history (3 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.1|^8.2

v2.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![tintnaingwin-genie](https://avatars.githubusercontent.com/u/99861060?v=4)](https://github.com/tintnaingwin-genie "tintnaingwin-genie (5 commits)")[![tintnaingwin](https://avatars.githubusercontent.com/u/13062143?v=4)](https://github.com/tintnaingwin "tintnaingwin (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

barcodelaravelphplaravelbarcodeageekdev

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

122163.3k2](/packages/bilfeldt-laravel-request-logger)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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