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

Abandoned → [webdna/barcode](/?search=webdna%2Fbarcode)Craft-plugin

kuriousagency/barcode
=====================

Generate a barcode

2.0.1(3y ago)21.3k1MITPHPPHP ^8.0.2|^9.0

Since Feb 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/webdna/craft-barcode)[ Packagist](https://packagist.org/packages/kuriousagency/barcode)[ RSS](/packages/kuriousagency-barcode/feed)WikiDiscussions master Synced 2mo ago

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

Barcode plugin for Craft CMS 4.x
================================

[](#barcode-plugin-for-craft-cms-4x)

Generate a barcode

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

```
    cd /path/to/project

```

2. Then tell Composer to load the plugin:

```
    composer require webdna/barcode

```

3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Barcode.

Barcode Overview
----------------

[](#barcode-overview)

This allows the generation of a barcode via a fieldtype, variable or twig filter.

Barcode Options
---------------

[](#barcode-options)

All instances of barcode accept the following parameters:

1. **Code**: number or alphanumeric depending on the barcode type.
2. **Format**: svg or png (default: svg)
3. **Type**: see below for all accepted types (default: EAN13)
4. **Width** factor: this set with width factor of the bars (default: 2)
5. **Height**: the in pixels of the bars (default: 30)
6. **Color**: the hex value of the bars (default: '#000000')

Using Barcode
-------------

[](#using-barcode)

Twig variables:

```
    {{ craft.barcode.generate(123456789) }}

    {{ craft.barcode.generate(123456789, 'png', 'EAN13', 2, 30, '#000000') }}

```

Twig Filters:

```
    {{ 123456789|barcode }}

    {{ 123456789|barcode('png', 'EAN13', 2, 30, '#000000') }}

```

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

[](#supported-barcode-types)

CodeNameC39CODE\_39C39+CODE\_39\_CHECKSUMC39ECODE\_39EC39E+CODE\_39E\_CHECKSUMC93CODE\_93S25STANDARD\_2\_5S25+STANDARD\_2\_5\_CHECKSUMI25INTERLEAVED\_2\_5I25+INTERLEAVED\_2\_5\_CHECKSUMC128CODE\_128C128ACODE\_128\_AC128BCODE\_128\_BC128CCODE\_128\_CEAN2EAN\_2EAN5EAN\_5EAN8EAN\_8EAN13EAN\_13UPCAUPC\_AUPCEUPC\_EMSIMSIMSI+MSI\_CHECKSUMPOSTNETPOSTNETPLANETPLANETRMS4CCRMS4CCKIXKIXIMBIMBCODABARCODABARCODE11CODE\_11PHARMAPHARMA\_CODEPHARMA2TPHARMA\_CODE\_TWO\_TRACKSBarcode Roadmap
---------------

[](#barcode-roadmap)

Some things to do, and ideas for potential features:

- Release it

Brought to you by [webdna](https://webdna.co.uk)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50% 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 ~208 days

Recently: every ~196 days

Total

7

Last Release

1395d ago

Major Versions

1.0.4 → 2.0.02022-07-04

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/26ccb4d99d148ee882e53248f814559cf2067c069cf1e4a1765d1eca07a3df3c?d=identicon)[Kurious](/maintainers/Kurious)

---

Top Contributors

[![CharlieGentle](https://avatars.githubusercontent.com/u/15872856?v=4)](https://github.com/CharlieGentle "CharlieGentle (3 commits)")[![samuelbirch](https://avatars.githubusercontent.com/u/13586?v=4)](https://github.com/samuelbirch "samuelbirch (3 commits)")

---

Tags

cmsbarcodeCraftcraftcmscraft-plugin

### Embed Badge

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

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

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.5k](/packages/acclaro-translations)

PHPackages © 2026

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