Encode linear and matrix barcodes and render them as SVG, HTML or images. Community package, not affiliated with 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.
Data Matrix
The core generates square Data Matrix ECC 200 symbols. See getting started.
PDF417
Use Pdf417Options for PDF417 and Macro PDF417 symbols with segment metadata.