PHP Barcode Generator and Reader API

Scan or Generate 1D, 2D and postal barcodes from images in any PHP web application.

  Download Free Trial
Aspose.BarCode for PHP via Java

Aspose.BarCode for PHP via Java

 
 

Aspose.BarCode for PHP via Java is a set of barcode generation and reading APIs for PHP applications and scripts. Developers can easily read 1D, 2D and postal barcodes from images at different angles. Barcode generator API creates barcode images within various formats such as JPG, PNG, GIF, BMP.  Moreover, It supports multiple imaging features like manipulating borders, color, rotating images, customizing resolution and a lot more.

 

Advanced PHP Barcode API Features

 

 

Generate multiple types of barcodes

 

Manage X and Y Dimensions

 

Set Height of the Bars

 

Set Start and Stop Symbols of Codabar

 

Control the Appearance of Code Text

 

Manage the Barcode Caption

 

Set Code Text for Barcode

 

Specify Symbologies for Barcodes

 

Recognize Multiple Symbologies in Single Image

 

Recognize Specific Barcode Symbology

 

Recognize all 1D Barcodes from an Image

 

Get BarCode Recognition Quality in Percent

 

Obtain Barcode Region Information from the Image

 

Read Barcode from Specific Region

 

Switch Barcode Recognition Modes as of Requirement

QR Code Generation

API has the capability to create barcodes of multiple types including DataMatrix, Aztec, Pdf417, multiple MacroPdf417 barcodes for large or multiple code text values. Here is the code for QR code generation.

PHP QR Code Generator

 //Instantiate barcode object
$builder = new BarCodeBuilder();

$symbology=new Symbology();
$builder->setSymbologyType($symbology->QR);
 
$builder->setCodeText("1234567890");
 
// Hide code text
$codeLocation=new CodeLocation();
$builder->setCodeLocation($codeLocation->None);
 
$builder->setRotationAngleF(90);
 
// Save the image to your system and set its image format to Jpeg
$builder->save($dataDir . "CreatingQRBarcode.jpg");
 
// Display or echo Status
 

Support and Learning Resources