PHPackages                             maddlen/trig - 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. maddlen/trig

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

maddlen/trig
============

Statamic addon that adds a barcode scanner fieldtype to Statamic CP

1.0.1(2y ago)04MITVue

Since Mar 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/maddlen/trig)[ Packagist](https://packagist.org/packages/maddlen/trig)[ RSS](/packages/maddlen-trig/feed)WikiDiscussions master Synced 1mo ago

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

Trig
====

[](#trig)

> Trig is a Statamic addon that adds a barcode scanner fieldtype to Statamic CP.

Features
--------

[](#features)

This addon:

- Creates a new Statamic fieldtype named "Barcode Scanner"
- With a trigger that opens a modal
- Which embeds a barcode scanner
- Using a WebAssembly build of the ZBar Bar Code Reader

Credits
-------

[](#credits)

- ZBar Bar Code Reader:
- WebAssembly build (zbar-wasm):

How to Install
--------------

[](#how-to-install)

You can search for this addon in the `Tools > Addons` section of the Statamic control panel and click **install**, or run the following command from your project root:

```
composer require maddlen/trig
```

How to Use
----------

[](#how-to-use)

Add the "Barcode Scanner" fieldtype to your blueprints, fieldsets, ... as you would with any other fieldtype.

Click on the revealer icon next to the text input to open the scanner and make sure to **allow access to your camera**.

Scan the barcode of an object. When a readable result is found, the field is populated with its value and the scanner is closed.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

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

Every ~3 days

Total

2

Last Release

797d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55149e5ad96c7b36aa3de09201584a233679d05479a17020f1ae95f421374122?d=identicon)[herveguetin](/maintainers/herveguetin)

---

Top Contributors

[![herveguetin](https://avatars.githubusercontent.com/u/1166904?v=4)](https://github.com/herveguetin "herveguetin (3 commits)")

### Embed Badge

![Health badge](/badges/maddlen-trig/health.svg)

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

###  Alternatives

[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[jacksleight/statamic-bard-texstyle

17172.5k](/packages/jacksleight-statamic-bard-texstyle)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

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