Aspose.BarCode  for PHP via Java

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 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

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