Add reliable barcode generation and scanning to PHP applications. Use a clean PHP API backed by a Java engine, so you get consistent results across environments without rewriting your stack.
Vendor
Aspose
Company Website
Aspose.BarCode for PHP via Java is a cross‑platform barcode generation and recognition API that allows PHP developers to add reliable barcode workflows to web applications, background jobs, and backend services. It provides a clean PHP interface backed by a Java engine, delivering consistent barcode processing across environments without requiring changes to PHP stacks. The library supports over 80 barcode symbologies, including 1D, 2D, postal, and composite types, and offers high accuracy when scanning images from files, scanners, or cameras. Installation is done via Composer, with runtime powered by a Java Apache Thrift server included in the package.
Features
Barcode Generation
- Create 1D, 2D, and postal barcodes including QR Code, MicroQR, rMQR, Data Matrix, Industrial Data Matrix (DPM), Aztec, PDF417, Han Xin, MaxiCode, DotCode, EAN/UPC, Code 128, DataBar, ITF, and many more.
- Generate barcodes server‑side in PNG, JPEG, TIFF, BMP, GIF, EXIF, and vector formats like SVG and EMF.
- Export Base64‑encoded barcode images for embedding directly into browsers without temporary files.
- Customize barcode size, X‑dimension, margins, captions, rotation, fonts, and resolution.
- Template‑friendly output for labels, receipts, PDFs, and invoices. Barcode Recognition
- Read barcodes from images, scans, mobile photos, and documents via PHP.
- Recognize barcodes at different angles and under common image issues (noise, compression artifacts, low light, skew, low contrast).
- Tune recognition speed vs. accuracy and target specific scan regions for high‑volume workloads.
- Return detailed metadata including barcode type, text content, orientation, and reading region.
- Detect multiple barcodes in a single image and across multi-page TIFF or PDF files. Supported Symbologies Matrix / 2D: QR, MicroQR, rMQR, Data Matrix, Industrial DPM, Aztec, Han Xin, MaxiCode, DotCode Linear / 1D: UPCA, UPCE, EAN8, EAN13, EAN14, ITF, Code 128, DataBar Postal / Composite: GS1, ECI, HIBC, SwissQR, Royal Mailmark, postal families Requirements & Deployment
- PHP 7.4+, JDK 1.8+.
- Platform‑independent: Windows, Linux, macOS, Solaris.
- Install via Composer: composer require aspose/barcode
- Requires PHP GD extension.
- Run the bundled Java Apache Thrift server (start_server.cmd / start_server.sh) for stable throughput under PHP‑FPM, NGINX, or Apache.
- Supports Dockerized deployments and horizontal scaling.
Benefits
- Consistent cross‑platform behavior: PHP API with Java backend ensures predictable results across dev, CI, and production.
- Reliable decoding for real‑world inputs: Engine handles noise, low‑light blur, skewed captures, and compression artifacts typical in scanned or photographed barcodes.
- High‑volume readiness: Batch processing supported using region targeting and tuned quality settings.
- Enterprise barcode standards: GS1, ECI, Swiss QR, DataBar, and postal codes for commerce, logistics, finance, healthcare, and ticketing.
- Flexible output for web apps: Base64 PNG for browsers, vector outputs for print, or image formats for backend pipelines.
- International text support: Encode and decode multilingual data using ECI features when applicable.
- Predictable operation model: Composer installation and long‑lived Java server provide stable performance for web‑first PHP environments.