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 today

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 13% 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

842d 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

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

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[rias/statamic-redirect

29335.6k](/packages/rias-statamic-redirect)[jacksleight/statamic-bard-texstyle

18195.4k](/packages/jacksleight-statamic-bard-texstyle)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23111.5k14](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

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

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

PHPackages © 2026

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