PNG JPG BMP TIFF SVG
Aspose.BarCode  for PHP via Java
Codablock-F

Read Codablock-F Barcodes with PHP via Java

Read Codablock-F and GS1 Codablock-F barcodes in PHP using server-side Aspose.BarCode for PHP via Java API

How to Read Codablock-F barcode Using PHP via Java

Read Codablock-F barcode barcodes within PHP applications using Aspose.BarCode for PHP via Java, a powerful, rich, and user-friendly barcode library intended for Java-based platforms. To try the barcode API, you need to get the latest version from the Aspose releases portal. You can also find the aspose/barcode package in Packagist and then integrate it into your PHP project via composer:

Command

{    
    "require": {        
        "asposebarcode/aspose_barcode_java_for_php": "dev-master"    
    }
}

Steps for Scanning Codablock-F barcode in PHP

Aspose.BarCode allows developers to read Codablock-F barcode barcodes from stream or image with few lines of code

  • Create an object of Aspose.BarCode.BarCodeReader class
  • Set the source image path containing Codablock-F barcode as a parameter
  • Specify target barcodes types in DecodeType as the second parameter
  • Loop through the reading results
  • Obtain the barcode text using the CodeText property

System Requirements

Aspose APIs are supported on all major platforms and operating systems. Before executing the code sample below, please make sure that your system comply with the following requirements.

  • Microsoft Windows, Linux, or any OS compatible with PHP-based development environments
Ready to recognize Recognizing Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Code to be executed - PHP

    
try
{
    $image_bytes = file_get_contents("<file name>");
    $image = base64_encode($image_bytes);
    $reader = new BarCodeReader($image, null, DecodeType::CodablockF);
    forEach($reader->readBarCodes() as $res)
    {
        print("Code Text : ".$res->getCodeTypeName()."\\n");
        print("\\n");
        print("Code Type : ".$res->getCodeText()."\\n");
    }

}
catch (BarcodeException $e)
{
    print($e->getMessage());
}

×
Barcode image

Other Supported Barcode Recognition Symbologies

Using PHP via Java, One can also read barcode of different symbologies including the following.

2D:

Linear:

Postal: