Skip to content
Repository contains PHP Library for communicating with the Aspose.BarCode Cloud API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Aspose.BarCode for Cloud PHP SDK

Aspose.BarCode for Cloud is a REST API for Linear, 2D and postal barcode generation and recognition in the cloud. API recognizes and generates barcode images in a variety of formats. Barcode REST API allows to specify barcode image attributes like image width, height, border style and output image format in order to customize the generation process. Developers can also specify the barcode type and text attributes such as text location and font styles in order to suit the application requirements.

This repository contains Aspose.BarCode for Cloud PHP SDK source code.

To use these SDKs, you will need App SID and App Key which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).

How to use the SDK?

You can either directly use it in your project via source code or get Packagist distribution (recommended).


Via Composer:

barcode-cloud-php is available on Packagist as the barcode-cloud-php package. Run the following command:

composer require aspose/barcode-cloud-php

To use the SDK, use Composer's autoload:

require __DIR__ . '/vendor/autoload.php';

Sample usage

use Aspose\BarCode\Configuration;
use Aspose\BarCode\BarCodeApi;
use Aspose\BarCode\Requests\BarCodeGetBarCodeGenerateRequest;

$config = new Configuration();

$request = new BarCodeGetBarCodeGenerateRequest();
$request->type = "QR";
$request->text = "PHP SDK Test";
$request->format = "png";

$api = new BarCodeApi(null, $config);
$response = $api->BarCodeGetBarCodeGenerate($request);

$type = 'image/png';
$size = $response->getSize();
header('Content-Length: ' . $size);
echo $response->fread($size);


All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under MIT License.


You can’t perform that action at this time.