# laravel-go-barcode documentation

> Go port of milon/barcode: generate 1D and 2D barcodes as SVG, HTML and PNG, and 1D barcodes as JPEG, for Go and Laravel for Go.

- Package: laravel-go-barcode (Laravel for Go, alpha), go modules: `github.com/bowerbird-si/laravel-go-barcode`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); Framework: go.laravel.com v0.2.0 or later; Go: Go 1.27.0 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/laravel-go-barcode), [pkg.go.dev](https://pkg.go.dev/github.com/bowerbird-si/laravel-go-barcode@v0.1.0), [Changelog](https://oss.bowerbird.si/go-barcode/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-go-barcode/blob/5efb0cf6740c5e82e000c53b2d1f67d375f7960e/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-go-barcode/blob/5efb0cf6740c5e82e000c53b2d1f67d375f7960e/SECURITY.md)
- Based on: [milon/barcode](https://github.com/milon/barcode): Reference behaviour for this independent Go implementation, following version 13.6.0.
- PHP parity: full (62 covered, 13 diverged, 0 planned of 75 abilities; 205 fixtures; follows milon/barcode v13.6.0; verified 2026-12-05)
- Community package, not affiliated with Laravel.
- HTML version: https://oss.bowerbird.si/go-barcode/docs/
- Source: https://github.com/bowerbird-si/laravel-go-barcode/blob/5efb0cf6740c5e82e000c53b2d1f67d375f7960e/docs/index.md

Go port of [`milon/barcode`](https://github.com/milon/barcode): generate 1D and 2D barcodes as SVG, HTML and PNG, and 1D barcodes as JPEG, for Go and Laravel for Go.

The module has two packages:

- `barcode` encodes and renders: 31 linear symbologies, QR Code, Data Matrix and PDF417 (with Macro
  PDF417), as SVG, HTML, PNG and, for linear symbols, JPEG. It has no web framework dependency.
- `laravelbarcode` installs the generators in a Laravel for Go application, adds template functions and
  HTTP responses, and stores PNG and JPEG files in a configured directory.

| If you want to… | Read |
| --- | --- |
| Install the package, render barcodes and use it in Laravel for Go | [Getting started](https://oss.bowerbird.si/go-barcode/docs/getting-started/) |
| Find the Go equivalent of a PHP call, and what behaves differently | [Migrating from PHP](https://oss.bowerbird.si/go-barcode/docs/migrating-from-php/) |

Community package, not affiliated with Laravel.
