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 2w 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 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

888d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1166904?v=4)[Hervé Guétin](/maintainers/herveguetin)[@herveguetin](https://github.com/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/seo-pro

71548.3k](/packages/statamic-seo-pro)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[rias/statamic-redirect

29347.4k](/packages/rias-statamic-redirect)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[alt-design/alt-sitemap

Alt Sitemap addon, create a sitemap from Statamic entries

1224.7k](/packages/alt-design-alt-sitemap)[studio1902/statamic-peak-tools

11177.9k](/packages/studio1902-statamic-peak-tools)

PHPackages © 2026

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