Skip to content

Commit

Permalink
Release 20.5 (#1)
Browse files Browse the repository at this point in the history
* Switch to API v3.0
* Updated SDK
  • Loading branch information
Denis-Averin authored May 25, 2020
1 parent bf51552 commit 7479b11
Show file tree
Hide file tree
Showing 175 changed files with 27,186 additions and 5,239 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*.lock
/vendor
/nbproject/private
Configuration*.json
!Configuration.example.json
155 changes: 126 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
# Aspose.BarCode Cloud SDK for PHP
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.
# Aspose.BarCode Cloud SDK for PHP

- API version: 3.0
- Package version: 20.5

This repository contains Aspose.BarCode Cloud SDK for PHP source code.
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 App SID and App Key which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/#/apps) (free registration in Aspose Cloud is required for this).

## How to use the SDK?
## How to use the SDK

You can either directly use it in your project via source code or get [Packagist distribution](https://packagist.org/packages/aspose/barcode-cloud-php) (recommended).

## Installation

## Via Composer:
### Via Composer

*barcode-cloud-php* is available on Packagist as the
[`barcode-cloud-php`](https://packagist.org/packages/aspose/barcode-cloud-php) package. Run the following command:
```bash

```sh
composer require aspose/barcode-cloud-php
```

To use the SDK, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):
To use the SDK, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```php
require __DIR__ . '/vendor/autoload.php';
Expand All @@ -27,37 +33,128 @@ require __DIR__ . '/vendor/autoload.php';
### Sample usage

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

use Aspose\BarCode\{Configuration, BarcodeApi, Model\EncodeBarcodeType, Requests\GetBarcodeGenerateRequest};

$config = new Configuration();
$config->setAppKey("your_key");
$config->setAppSid("your_sid");
$config->setAppKey('App Key from https://dashboard.aspose.cloud/#/apps');
$config->setAppSid('App SID from https://dashboard.aspose.cloud/#/apps');
// Or use Configuration.json file
//$config = Configuration::fromJson(file_get_contents('tests/Configuration.json'));

$request = new BarCodeGetBarCodeGenerateRequest();
$request->type = "QR";
$request->text = "PHP SDK Test";
$request->format = "png";
$request = new GetBarcodeGenerateRequest(EncodeBarcodeType::QR, 'PHP SDK Test');
$request->format = 'png';

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

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

# Licensing
## Licensing

All Aspose.BarCode for Cloud SDKs, helper scripts and templates are licensed under [MIT License](LICENSE).

# Resources
+ [**Website**](https://www.aspose.cloud)
+ [**Product Home**](https://products.aspose.cloud/barcode/cloud)
+ [**Documentation**](https://docs.aspose.cloud/display/barcodecloud/Home)
+ [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
+ [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
+ [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-barcode-product-family/)
## Resources

- [**Website**](https://www.aspose.cloud)
- [**Product Home**](https://products.aspose.cloud/barcode/cloud)
- [**Documentation**](https://docs.aspose.cloud/display/barcodecloud/Home)
- [**Free Support Forum**](https://forum.aspose.cloud/c/barcode)
- [**Paid Support Helpdesk**](https://helpdesk.aspose.cloud/)
- [**Blog**](https://blog.aspose.cloud/category/aspose-products/aspose-barcode-product-family/)

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*BarcodeApi* | [**getBarcodeGenerate**](docs/Api/BarcodeApi.md#getbarcodegenerate) | **GET** /barcode/generate | Generate barcode.
*BarcodeApi* | [**getBarcodeRecognize**](docs/Api/BarcodeApi.md#getbarcoderecognize) | **GET** /barcode/{name}/recognize | Recognize barcode from a file on server.
*BarcodeApi* | [**postBarcodeRecognizeFromUrlOrContent**](docs/Api/BarcodeApi.md#postbarcoderecognizefromurlorcontent) | **POST** /barcode/recognize | Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image or encoded with base64.
*BarcodeApi* | [**postGenerateMultiple**](docs/Api/BarcodeApi.md#postgeneratemultiple) | **POST** /barcode/generateMultiple | Generate multiple barcodes and return in response stream
*BarcodeApi* | [**putBarcodeGenerateFile**](docs/Api/BarcodeApi.md#putbarcodegeneratefile) | **PUT** /barcode/{name}/generate | Generate barcode and save on server (from query params or from file with json or xml content)
*BarcodeApi* | [**putBarcodeRecognizeFromBody**](docs/Api/BarcodeApi.md#putbarcoderecognizefrombody) | **PUT** /barcode/{name}/recognize | Recognition of a barcode from file on server with parameters in body.
*BarcodeApi* | [**putGenerateMultiple**](docs/Api/BarcodeApi.md#putgeneratemultiple) | **PUT** /barcode/{name}/generateMultiple | Generate image with multiple barcodes and put new file on server
*FileApi* | [**copyFile**](docs/Api/FileApi.md#copyfile) | **PUT** /barcode/storage/file/copy/{srcPath} | Copy file
*FileApi* | [**deleteFile**](docs/Api/FileApi.md#deletefile) | **DELETE** /barcode/storage/file/{path} | Delete file
*FileApi* | [**downloadFile**](docs/Api/FileApi.md#downloadfile) | **GET** /barcode/storage/file/{path} | Download file
*FileApi* | [**moveFile**](docs/Api/FileApi.md#movefile) | **PUT** /barcode/storage/file/move/{srcPath} | Move file
*FileApi* | [**uploadFile**](docs/Api/FileApi.md#uploadfile) | **PUT** /barcode/storage/file/{path} | Upload file
*FolderApi* | [**copyFolder**](docs/Api/FolderApi.md#copyfolder) | **PUT** /barcode/storage/folder/copy/{srcPath} | Copy folder
*FolderApi* | [**createFolder**](docs/Api/FolderApi.md#createfolder) | **PUT** /barcode/storage/folder/{path} | Create the folder
*FolderApi* | [**deleteFolder**](docs/Api/FolderApi.md#deletefolder) | **DELETE** /barcode/storage/folder/{path} | Delete folder
*FolderApi* | [**getFilesList**](docs/Api/FolderApi.md#getfileslist) | **GET** /barcode/storage/folder/{path} | Get all files and folders within a folder
*FolderApi* | [**moveFolder**](docs/Api/FolderApi.md#movefolder) | **PUT** /barcode/storage/folder/move/{srcPath} | Move folder
*StorageApi* | [**getDiscUsage**](docs/Api/StorageApi.md#getdiscusage) | **GET** /barcode/storage/disc | Get disc usage
*StorageApi* | [**getFileVersions**](docs/Api/StorageApi.md#getfileversions) | **GET** /barcode/storage/version/{path} | Get file versions
*StorageApi* | [**objectExists**](docs/Api/StorageApi.md#objectexists) | **GET** /barcode/storage/exist/{path} | Check if file or folder exists
*StorageApi* | [**storageExists**](docs/Api/StorageApi.md#storageexists) | **GET** /barcode/storage/{storageName}/exist | Check if storage exists

## Documentation For Models

- [AustralianPostParams](docs/Model/AustralianPostParams.md)
- [AutoSizeMode](docs/Model/AutoSizeMode.md)
- [AvailableGraphicsUnit](docs/Model/AvailableGraphicsUnit.md)
- [AztecParams](docs/Model/AztecParams.md)
- [AztecSymbolMode](docs/Model/AztecSymbolMode.md)
- [BarCodeErrorResponse](docs/Model/BarCodeErrorResponse.md)
- [BarcodeResponse](docs/Model/BarcodeResponse.md)
- [BarcodeResponseList](docs/Model/BarcodeResponseList.md)
- [BorderDashStyle](docs/Model/BorderDashStyle.md)
- [CaptionParams](docs/Model/CaptionParams.md)
- [ChecksumValidation](docs/Model/ChecksumValidation.md)
- [CodabarChecksumMode](docs/Model/CodabarChecksumMode.md)
- [CodabarParams](docs/Model/CodabarParams.md)
- [CodabarSymbol](docs/Model/CodabarSymbol.md)
- [CodablockParams](docs/Model/CodablockParams.md)
- [Code16KParams](docs/Model/Code16KParams.md)
- [CodeLocation](docs/Model/CodeLocation.md)
- [CouponParams](docs/Model/CouponParams.md)
- [CustomerInformationInterpretingType](docs/Model/CustomerInformationInterpretingType.md)
- [DataBarParams](docs/Model/DataBarParams.md)
- [DataMatrixEccType](docs/Model/DataMatrixEccType.md)
- [DataMatrixEncodeMode](docs/Model/DataMatrixEncodeMode.md)
- [DataMatrixParams](docs/Model/DataMatrixParams.md)
- [DecodeBarcodeType](docs/Model/DecodeBarcodeType.md)
- [DiscUsage](docs/Model/DiscUsage.md)
- [DotCodeParams](docs/Model/DotCodeParams.md)
- [ECIEncodings](docs/Model/ECIEncodings.md)
- [EnableChecksum](docs/Model/EnableChecksum.md)
- [EncodeBarcodeType](docs/Model/EncodeBarcodeType.md)
- [Error](docs/Model/Error.md)
- [ErrorDetails](docs/Model/ErrorDetails.md)
- [FileVersions](docs/Model/FileVersions.md)
- [FilesList](docs/Model/FilesList.md)
- [FilesUploadResult](docs/Model/FilesUploadResult.md)
- [FontMode](docs/Model/FontMode.md)
- [FontParams](docs/Model/FontParams.md)
- [FontStyle](docs/Model/FontStyle.md)
- [GeneratorParams](docs/Model/GeneratorParams.md)
- [GeneratorParamsList](docs/Model/GeneratorParamsList.md)
- [ITF14BorderType](docs/Model/ITF14BorderType.md)
- [ITFParams](docs/Model/ITFParams.md)
- [MaxiCodeParams](docs/Model/MaxiCodeParams.md)
- [ObjectExist](docs/Model/ObjectExist.md)
- [Padding](docs/Model/Padding.md)
- [Pdf417CompactionMode](docs/Model/Pdf417CompactionMode.md)
- [Pdf417ErrorLevel](docs/Model/Pdf417ErrorLevel.md)
- [Pdf417Params](docs/Model/Pdf417Params.md)
- [PostalParams](docs/Model/PostalParams.md)
- [PresetType](docs/Model/PresetType.md)
- [QREncodeMode](docs/Model/QREncodeMode.md)
- [QREncodeType](docs/Model/QREncodeType.md)
- [QRErrorLevel](docs/Model/QRErrorLevel.md)
- [QRVersion](docs/Model/QRVersion.md)
- [QrParams](docs/Model/QrParams.md)
- [ReaderParams](docs/Model/ReaderParams.md)
- [RegionPoint](docs/Model/RegionPoint.md)
- [ResultImageInfo](docs/Model/ResultImageInfo.md)
- [StorageExist](docs/Model/StorageExist.md)
- [StorageFile](docs/Model/StorageFile.md)
- [TextAlignment](docs/Model/TextAlignment.md)
- [FileVersion](docs/Model/FileVersion.md)
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@
}
],
"require": {
"guzzlehttp/guzzle": "^6.2"
"guzzlehttp/guzzle": "^6.2",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": ">=7.5.20"
},
"autoload": {
"psr-4": {
"Aspose\\": "src/"
"Aspose\\": "src/Aspose/"
}
},
"scripts": {
"test": "phpunit --testdox tests"
}
}
Loading

0 comments on commit 7479b11

Please sign in to comment.