Coder Social home page Coder Social logo

aspose-barcode-cloud / aspose-barcode-cloud-php Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 559 KB

Repository contains PHP Library for communicating with the Aspose.BarCode Cloud API

License: MIT License

PHP 99.56% Makefile 0.03% Shell 0.11% Python 0.29%
aspose-cloud sdk qr ean13 recognition php barcode barcode-cloud-php barcode-cloud-sdk packagist composer barcode-scanner barcode-generator barcode-reader barcodes barcode-scanning barcode-detection barcode-recognizer barcodescanner barcode-images

aspose-barcode-cloud-php's Introduction

Aspose.BarCode Cloud SDK for PHP

License Test Packagist Version Supported PHP Versions

  • API version: 3.0
  • Package version: 24.5.0
  • Supported PHP versions: ">=7.4 || >=8.0"

Demo applications

Scan QR Generate Barcode Recognize Barcode
ScanQR Generate Recognize
Generate Wi-Fi QR Embed Barcode Scan Barcode
Wi-FiQR Embed Scan

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 Cloud SDK for PHP source code.

To use these SDKs, you will need Client Id and Client Secret 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).

Installation

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\GetBarcodeGenerateRequest;
use Aspose\BarCode\Model\{EncodeBarcodeType, CodeLocation};

$config = new Configuration();
$config->setClientId('Client Id from https://dashboard.aspose.cloud/applications');
$config->setClientSecret('Client Secret from https://dashboard.aspose.cloud/applications');

$request = new GetBarcodeGenerateRequest(EncodeBarcodeType::QR, 'PHP SDK Test');
$request->format = 'png';
$request->text_location = CodeLocation::None;

$api = new BarcodeApi(null, $config);
$response = $api->GetBarCodeGenerate($request);

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

Licensing

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

Resources

Documentation for API Endpoints

All URIs are relative to https://api.aspose.cloud/v3.0

Class Method HTTP request Description
BarcodeApi getBarcodeGenerate GET /barcode/generate Generate barcode.
BarcodeApi getBarcodeRecognize GET /barcode/{name}/recognize Recognize barcode from a file on server.
BarcodeApi postBarcodeRecognizeFromUrlOrContent POST /barcode/recognize Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type "application/octet-stream". An image can also be passed as a form field.
BarcodeApi postGenerateMultiple POST /barcode/generateMultiple Generate multiple barcodes and return in response stream
BarcodeApi putBarcodeGenerateFile PUT /barcode/{name}/generate Generate barcode and save on server (from query params or from file with json or xml content)
BarcodeApi putBarcodeRecognizeFromBody PUT /barcode/{name}/recognize Recognition of a barcode from file on server with parameters in body.
BarcodeApi putGenerateMultiple PUT /barcode/{name}/generateMultiple Generate image with multiple barcodes and put new file on server
BarcodeApi scanBarcode POST /barcode/scan Quickly scan a barcode from an image.
FileApi copyFile PUT /barcode/storage/file/copy/{srcPath} Copy file
FileApi deleteFile DELETE /barcode/storage/file/{path} Delete file
FileApi downloadFile GET /barcode/storage/file/{path} Download file
FileApi moveFile PUT /barcode/storage/file/move/{srcPath} Move file
FileApi uploadFile PUT /barcode/storage/file/{path} Upload file
FolderApi copyFolder PUT /barcode/storage/folder/copy/{srcPath} Copy folder
FolderApi createFolder PUT /barcode/storage/folder/{path} Create the folder
FolderApi deleteFolder DELETE /barcode/storage/folder/{path} Delete folder
FolderApi getFilesList GET /barcode/storage/folder/{path} Get all files and folders within a folder
FolderApi moveFolder PUT /barcode/storage/folder/move/{srcPath} Move folder
StorageApi getDiscUsage GET /barcode/storage/disc Get disc usage
StorageApi getFileVersions GET /barcode/storage/version/{path} Get file versions
StorageApi objectExists GET /barcode/storage/exist/{path} Check if file or folder exists
StorageApi storageExists GET /barcode/storage/{storageName}/exist Check if storage exists

Documentation For Models

aspose-barcode-cloud-php's People

Contributors

denis-averin avatar eldar-yakupov avatar ivankamkin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aspose-barcode-cloud-php's Issues

Support for Guzzle 7

The command

./composer.phar require aspose/barcode-cloud-php

brings me

Initializing PEAR repository https://pear.php.net
Using version ^20.12 for aspose/barcode-cloud-php
./composer.json has been updated
Loading composer repositories with package information
Initializing PEAR repository https://pear.php.net
Updating dependencies (including require-dev)    
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for aspose/barcode-cloud-php ^20.12 -> satisfiable by aspose/barcode-cloud-php[v20.12.0].
    - aspose/barcode-cloud-php v20.12.0 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.4.0, 6.4.1, 6.5.0, 6.5.1, 6.5.2, 6.5.3, 6.5.4, 6.5.5, 6.5.x-dev] but these conflict with your requirements or minimum-stability.

Installation failed, reverting ./composer.json to its original content.

because I have guzzlehttp/guzzle:7.2.0 installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.