maddlen/trig
最新稳定版本:1.0.1
Composer 安装命令:
composer require maddlen/trig
包简介
Statamic addon that adds a barcode scanner fieldtype to Statamic CP
README 文档
README
Trig is a Statamic addon that adds a barcode scanner fieldtype to Statamic CP.
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
- ZBar Bar Code Reader: https://zbar.sourceforge.net/
- WebAssembly build (zbar-wasm): https://github.com/undecaf/zbar-wasm
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
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.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-08