Generate Barcode with Checksum Option (PHP SDK)

Skip to end of metadata
Go to start of metadata
This example allows you to generate barcode with checksum option Saaspose Barcode PHP SDK.
           //create BarcodeBuilder object
           $builder = new BarcodeBuilder();
	   //set parameters
           $codeText = "HelloWorld";
	   $symbology = "Code128";
	   $imageFormat = "png";
	   $fileName = "test.png";
    	   $enableChecksum = "Yes";

	   echo "Generating " . $symbology . " barcode... </br>";

	   //save output barcode image as required format
           $outputPath = $builder->Save($codeText, $symbology, $imageFormat, null, null, null, null, nullnull, null, $fileName, null,
					 nullnull, null, null, null, null, null, null, null, null, $enableChecksum);

	   echo "Barcode generated and saved as " . $outputPath;
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.