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.
An overview of the barcode recognition & generation capabilities of API.
Aspose.Barcode for PHP via Java requires PHP 5.3 (or above) and JavaBridge. It can run on any platform where these requirements can be met.
API works with the most commonly used image formats.
Generate multiple types of barcodes
Manage X and Y Dimensions
Set Height of the Bars
Set Start and Stop Symbols of Codabar
Control the Appearance of Code Text
Manage the Barcode Caption
Set Code Text for Barcode
Specify Symbologies for Barcodes
Recognize Multiple Symbologies in Single Image
Recognize Specific Barcode Symbology
Recognize all 1D Barcodes from an Image
Get BarCode Recognition Quality in Percent
Obtain Barcode Region Information from the Image
Read Barcode from Specific Region
Switch Barcode Recognition Modes as of Requirement
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.
//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
Aspose.BarCode offers individual Barcode generation and recognition APIs for other popular development environments as listed below: