We're sorry AsposeCloud doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.cloud

PHP 5.6 Aspose barcode

I’m interested in your service in here: https://products.aspose.cloud/barcode/curl/

But my system is using PHP 5.6

Just want to check if your Barcode - API system requires PHP 7 or higher.


I have tested the Aspose.BarCode Cloud SDK for PHP with PHP 7.3 and 7.4 without any issues. However, I will check the minimum supported version of PHP and will update you soon.

1 Like


Thanks for your patience. Please note Aspose.BarCode Cloud SDK for PHP supports PHP version 7.3 and above.


In addition to the above reply, please note if you want to use Aspose.BarCode Cloud API via cURL in PHP then there should not be any PHP version issue with Aspose.BarCode Cloud API. However, Aspose.BarCode Cloud SDK for PHP supports PHP version 7.3 and above.

Thanks for reply,
I’m trying cURL in PHP now.

What are required parameters?
I am using local images not image url. - Do we need image data to be base64 encoded?
I tried and getting below. Does it mean api is getting the image correctly?
but nothing for curl_exec.
Can you advise?

Here is array I got from curl_getinfo():

    [url] => https://api.aspose.cloud/v3.0/barcode/recognize
    [content_type] => 
    [http_code] => 401
    [header_size] => 182
    [request_size] => 269
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.521339
    [namelookup_time] => 0.066907
    [connect_time] => 0.18011
    [pretransfer_time] => 0.36951
    [size_upload] => 3210
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 6157
    [download_content_length] => 0
    [upload_content_length] => 3210
    [starttransfer_time] => 0.443815
    [redirect_time] => 0
    [redirect_url] => 
    [primary_ip] =>
    [certinfo] => Array



Please check the sample cURL command to recognize barcode from local image. Hopefully, it will help you to accomplish the task.

curl -X POST "https://api.aspose.cloud/v3.0/barcode/recognize?Type=QR" 
-H "accept: application/json" 
-H "authorization: Bearer [Access_Token]" 
-H "Content-Type: multipart/form-data" 
-F "image"="@C:/Temp/barcode_qr.png"