aspose / barcode-cloud-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 f
Installs: 1 179
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php: >=7.4 || >=8.0
- ext-json: *
- guzzlehttp/guzzle: >=6
Requires (Dev)
- friendsofphp/php-cs-fixer: >=2.16
- phpstan/phpstan: ^1.9
- phpunit/phpunit: >=7.5.20
- dev-main
- v24.11.0
- v24.10.0
- v24.9.0
- v24.8.0
- v24.7.0
- v24.6.0
- v24.5.0
- v24.4.0
- v24.3.0
- v24.2.0
- v24.1.0
- v23.12.0
- v23.11.0
- v23.10.0
- v23.9.0
- v23.8.0
- v23.7.1
- v23.7.0
- v23.6.0
- v23.5.0
- v23.4.0
- v23.3
- v23.2
- v23.1
- v22.12
- v22.11
- v22.10
- v22.9.2
- v22.9.1
- v22.9.0
- v22.8.0
- v22.7.0
- v22.3.0
- v22.1.0
- v21.12.0
- v21.10.0
- v21.9.1
- v21.9.0
- v21.7.0
- v21.6.0
- v21.3.0
- v21.2.0
- v20.12.1
- v20.12.0
- v20.11.0
- v20.10.0
- v20.8.0
- v20.5.0
- v4.x-dev
- dev-release-24.12
- dev-level-4
This package is auto-updated.
Last update: 2024-12-21 07:32:31 UTC
README
- API version: 3.0
- Package version: 24.11.0
- Supported PHP versions: ">=7.4 || >=8.0"
Demo applications
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
<?php declare(strict_types=1); require __DIR__ . '/vendor/autoload.php'; use Aspose\BarCode\Configuration; use Aspose\BarCode\BarcodeApi; use Aspose\BarCode\Requests\GetBarcodeGenerateRequest; use Aspose\BarCode\Model\{EncodeBarcodeType, CodeLocation}; $config = new Configuration(); $config->setClientId('ClientId from https://dashboard.aspose.cloud/applications'); $config->setClientSecret('Client Secret from https://dashboard.aspose.cloud/applications'); if (getenv("TEST_CONFIGURATION_ACCESS_TOKEN")) { $config->setAccessToken(getenv("TEST_CONFIGURATION_ACCESS_TOKEN")); } $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
Documentation For Models
- ApiError
- ApiErrorResponse
- AustralianPostParams
- AutoSizeMode
- AvailableGraphicsUnit
- AztecEncodeMode
- AztecParams
- AztecSymbolMode
- BarcodeResponse
- BarcodeResponseList
- BorderDashStyle
- CaptionParams
- ChecksumValidation
- CodabarChecksumMode
- CodabarParams
- CodabarSymbol
- CodablockParams
- Code128Emulation
- Code128EncodeMode
- Code128Params
- Code16KParams
- CodeLocation
- CouponParams
- CustomerInformationInterpretingType
- DataBarParams
- DataMatrixEccType
- DataMatrixEncodeMode
- DataMatrixParams
- DataMatrixVersion
- DecodeBarcodeType
- DiscUsage
- DotCodeEncodeMode
- DotCodeParams
- ECIEncodings
- EnableChecksum
- EncodeBarcodeType
- Error
- ErrorDetails
- FileVersions
- FilesList
- FilesUploadResult
- FontMode
- FontParams
- FontStyle
- GeneratorParams
- GeneratorParamsList
- HanXinEncodeMode
- HanXinErrorLevel
- HanXinParams
- HanXinVersion
- ITF14BorderType
- ITFParams
- MacroCharacter
- MaxiCodeEncodeMode
- MaxiCodeMode
- MaxiCodeParams
- ObjectExist
- Padding
- PatchCodeParams
- PatchFormat
- Pdf417CompactionMode
- Pdf417ErrorLevel
- Pdf417MacroTerminator
- Pdf417Params
- PostalParams
- PresetType
- QREncodeMode
- QREncodeType
- QRErrorLevel
- QRVersion
- QrParams
- ReaderParams
- RegionPoint
- ResultImageInfo
- StorageExist
- StorageFile
- StructuredAppend
- TextAlignment
- FileVersion