Specify Symbologies for Barcodes in PHP

Aspose.BarCode - Specify Symbologies for Barcodes

To Specify Symbologies for Barcodes using Aspose.Barcode Java for PHP, simply invoke SpecifySymbologies module. Here you can see example code.

PHPCode

 $builder = new BarCodeBuilder();

\# ============ Code39Standard =====================

\# set symbology type

$symbology=new Symbology();

$builder->setSymbologyType($symbology->Code39Standard);

\# Save image to disk

$builder->save($dataDir . "code39Standard.out.png");

\# ================== QR ===========================

\# set symbology type

$builder->setSymbologyType($symbology->QR);

\# Save image to disk

$builder->save($dataDir . "QR.out.png");

\# =============== Code128 =========================

\# set symbology type

$builder->setSymbologyType($symbology->Code128);

\# Save image to disk

$builder->save($dataDir . "code128.out.png");

\# Print message

print "Barcode image(s) generated successfully.".PHP_EOL;

Download Running Code

Download Specify Symbologies for Barcodes (Aspose.BarCode) from any of the below mentioned social coding sites: