Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Gs1 Barcode Parser

Gs1 Barcode Parser Laravel Package

lamoda/gs1-barcode-parser

Parse GS1 barcodes in PHP with lamoda/gs1-barcode-parser. Decode application identifiers like GTIN, batch/lot, expiry date, and serial number from GS1-128 or DataMatrix labels into structured data for inventory, logistics, and Laravel apps.

View on GitHub
Deep Wiki
Context7

GS1 Barcode parser and validator compatible with official GS1 documentation

Frequently asked questions about Gs1 Barcode Parser
Does lamoda/gs1-barcode-parser decode barcode images or only parse scanner output strings?
It parses already-decoded GS1 payload strings into application identifiers and values; it does not replace the scanner or image-decoding layer. You still need a scanner or image decoder that produces the raw GS1-128 or DataMatrix payload. In Laravel, wrap the package in an adapter and pass it validated scanner output rather than image files.
How do I install lamoda/gs1-barcode-parser in a Laravel application?
Install it with Composer using the package name lamoda/gs1-barcode-parser, then pin the version in composer.json. Create a small adapter or service class and bind it in a Laravel service provider. Validate raw scanner payloads at the request or job boundary before calling the parser, and keep the package out of controllers and domain models.
Which GS1 application identifiers does lamoda/gs1-barcode-parser support?
The package claims GS1 compatibility, but you should verify the exact application identifier coverage against its source code and your own barcode corpus. Do not assume every AI, fixed-length rule, or variable-length field is supported. Build an allowlist of the AIs your business uses, such as GTIN, batch/lot, expiry date, and serial number, and test those explicitly.
Is lamoda/gs1-barcode-parser compatible with Laravel 11 and PHP 8.3?
Compatibility is not guaranteed from the package description alone, especially because the last release noted in this assessment is from 2022-02-14. Check the package composer.json for declared PHP constraints and run a spike in CI on your target Laravel and PHP versions. If the upstream package is stale, keep an internal fork or adapter boundary so you can patch or replace it without touching business logic.
How does lamoda/gs1-barcode-parser handle FNC1 and GS group separators in GS1 payloads?
Separator handling depends heavily on what the scanner emits, because some devices include symbology identifiers such as ]d2, strip FNC1, or represent GS group separators differently. Verify how the package expects variable-length fields to be separated before relying on it in production. Add contract tests using payloads from your actual scanner models and normalize scanner output at the boundary if needed.
Can I use lamoda/gs1-barcode-parser for pharmaceutical or food traceability compliance?
The package can help parse GS1 data, but it is not by itself a compliance solution for regulated workflows. You must verify current GS1 rules, supported AIs, failure behavior, audit requirements, and correctness against your real barcode corpus. For pharma, food traceability, or other regulated use cases, treat it as a replaceable adapter and validate it thoroughly before production.
What happens when lamoda/gs1-barcode-parser receives malformed or unsupported GS1 barcode data?
You should inspect the package source and tests to confirm whether it throws exceptions, returns partial data, or silently ignores unsupported elements. Wrap parsing in an adapter that converts package-specific failures into your own domain error types. Log the raw payload safely, reject unsupported AIs explicitly, and provide a fallback path such as manual entry for failed scans.
Does lamoda/gs1-barcode-parser include tests with real GS1 DataMatrix payloads?
Test coverage is not clear from the package overview, so verify the repository for a test suite and inspect what kinds of payloads it covers. Do not rely only on package fixtures; build an internal corpus from your actual scanner models and business processes. Contract tests around your adapter will also make it easier to replace the package later.
Is lamoda/gs1-barcode-parser actively maintained, and what are the alternatives?
Signals in this assessment, including 21 stars and a last release on 2022-02-14, suggest low adoption and limited active maintenance. The MIT license makes internal patching or forking low-friction, but you still own correctness and compatibility risk. Alternatives include another GS1 parser, a small in-house parser for only the AIs you need, or vendor-supported barcode middleware, so reassess after a pilot.
How should I integrate lamoda/gs1-barcode-parser into a Laravel service layer or queue job?
Keep the package behind an interface such as a GS1 parser adapter and call it only inside an infrastructure or service class. The request or job should validate the raw scanner payload, the adapter should parse it, and the application should receive normalized DTOs or value objects rather than package-specific arrays or exceptions. For high-volume scanning, dispatch parsing to queued jobs and use a feature flag plus a fallback path during rollout.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons