Use Checksum and Supplement Data for Barcodes in PHP

Aspose.BarCode - Use Checksum and Supplement Data for Barcodes

To Use Checksum and Supplement Data for Barcodes using Aspose.Barcode Java for PHP, simply invoke UseChecksumAndSupplementData module. Here you can see example code.

PHPCode

 # Instantiate barcode object

$bb = new BarCodeBuilder();

\# Set the Code text for the barcode

$bb->setCodeText("1234567");

\# Set the symbology type to Code39

$symbology=new Symbology();

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

\# Make the checksum to be visible on the barcode

$enableChecksum=new EnableChecksum();

$bb->setEnableChecksum($enableChecksum->Default);

\# Save the image to disk in JPG format

$bb->save($dataDir . "barcode.jpg");

\# Print message

print "Barcode image generated successfully.".PHP_EOL;

Download Running Code

Download Use Checksum and Supplement Data for Barcodes (Aspose.BarCode) from any of the below mentioned social coding sites: