public static function run($dataDir = null)
 {
     # Instantiate barcode object
     $bb = new BarCodeBuilder();
     # Set the code text of the barcode
     $bb->setCodeText("12345678");
     # Roate clockwise for 180 degree (upside down)
     $bb->setRotationAngleF(180);
     # Set the symbology type to code39
     $symbology = new Symbology();
     $bb->setSymbologyType($symbology->Code39Extended);
     $bb->save($dataDir . "Rotate.jpg");
     # Display Status.
     print "Done with image rotation, please check the output file." . PHP_EOL;
 }
 public static function run($dataDir = null)
 {
     # 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 Status
     print "Created QR Barcode Successfully." . PHP_EOL;
 }