# laravel-rust-barcode documentation

> Encode linear and matrix barcodes and render them as SVG, HTML or images. Community package, not affiliated with Laravel.

- Package: laravel-rust-barcode (Laravel for Rust, alpha), crates: `laravel-rust-barcode`, `laravel-rust-barcode-core`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); Framework: laravel-rust 0.2.x; MSRV: Rust 1.99 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/laravel-rust-barcode), [crates.io](https://crates.io/crates/laravel-rust-barcode/0.1.0), [docs.rs](https://docs.rs/laravel-rust-barcode/0.1.0), [Changelog](https://oss.bowerbird.si/barcode/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-rust-barcode/blob/3cc853b5abd7af2bf6028407dda457fb69bdf231/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-rust-barcode/blob/3cc853b5abd7af2bf6028407dda457fb69bdf231/SECURITY.md)
- Based on: [milon/barcode](https://github.com/milon/barcode): The PHP package whose behaviour this package independently implements, following version 13.6.0.
- PHP parity: full (66 covered, 13 diverged, 0 planned of 79 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/barcode/docs/
- Source: https://github.com/bowerbird-si/laravel-rust-barcode/blob/3cc853b5abd7af2bf6028407dda457fb69bdf231/docs/index.md

Encode linear and matrix barcodes and render them as SVG, HTML or images. Community package, not affiliated with Laravel.

- [Getting started](https://oss.bowerbird.si/barcode/docs/getting-started/)
- [Migrating from PHP](https://oss.bowerbird.si/barcode/docs/migrating-from-php/)
- [Laravel integration](https://oss.bowerbird.si/barcode/docs/laravel/)

## Linear symbologies

| PHP type | Rust variant | Symbology |
| --- | --- | --- |
| `C39`, `C39+` | `Linear::Code39`, `Linear::Code39Check` | Code 39, optionally with a modulo 43 check character |
| `C39E`, `C39E+` | `Linear::Code39Full`, `Linear::Code39FullCheck` | Code 39 Full ASCII, optionally with a check character |
| `S25`, `S25+` | `Linear::Industrial25`, `Linear::Industrial25Check` | Industrial 2 of 5, optionally with a check digit |
| `I25`, `I25+` | `Linear::Interleaved25`, `Linear::Interleaved25Check` | Interleaved 2 of 5, optionally with a check digit |
| `MSI`, `MSI+` | `Linear::Msi`, `Linear::MsiCheck` | MSI Plessey, optionally with a check digit |
| `C93` | `Linear::Code93` | Code 93 Full ASCII |
| `CODABAR` | `Linear::Codabar` | Codabar |
| `EAN2`, `EAN5` | `Linear::Ean2`, `Linear::Ean5` | Retail add-ons |
| `EAN8`, `EAN13`, `UPCA`, `UPCE` | `Linear::Ean8`, `Linear::Ean13`, `Linear::UpcA`, `Linear::UpcE` | Retail symbols |
| `CODE11` | `Linear::Code11` | Code 11 with one or two check characters |
| `POSTNET`, `PLANET` | `Linear::Postnet`, `Linear::Planet` | USPS postal barcodes |
| `RMS4CC`, `KIX` | `Linear::Rm4scc`, `Linear::Kix` | Royal Mail and PostNL postal barcodes |
| `PHARMA`, `PHARMA2T` | `Linear::Pharma`, `Linear::PharmaTwoTrack` | Pharmacode |
| `C128`, `C128A`, `C128B`, `C128C`, `GS1-128` | `Linear::Code128`, `Linear::Code128A`, `Linear::Code128B`, `Linear::Code128C`, `Linear::Gs1128` | Code 128 and GS1-128 |
| `IMB` | `Linear::Imb` | USPS Intelligent Mail Barcode |

## QR Code

The core also generates QR Code Model 2 at levels L, M, Q and H. See [getting started](https://oss.bowerbird.si/barcode/docs/getting-started/#qr-code).

## Data Matrix

The core generates square Data Matrix ECC 200 symbols. See [getting started](https://oss.bowerbird.si/barcode/docs/getting-started/#data-matrix).

## PDF417

Use `Pdf417Options` for PDF417 and Macro PDF417 symbols with segment metadata.
