Download the PHP package aspose/html-sdk-php without Composer
On this page you can find all versions of the php package aspose/html-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aspose/html-sdk-php
More information about aspose/html-sdk-php
Files in aspose/html-sdk-php
Package html-sdk-php
Short Description This repository contains Aspose_Html_Cloud_SDK for PHP source code. Aspose Cloud SDK for PHP lets PHP developers convert and process a variety of file formats in the cloud quickly and easily.
License MIT
Homepage https://github.com/aspose-html-cloud/aspose-html-cloud-php
Informations about the package html-sdk-php
Aspose HTML Cloud SDK
This repository contains Aspose.HTML Cloud SDK source code. This SDK allows you to work with Aspose.HTML Cloud REST APIs in your applications quickly and easily.
See API Reference for full API specification.
How to use the SDK?
The complete source code is available in this repository folder, you can either directly use it in your project.
Requirements
PHP 5.6 and later
Prerequisites
To use Aspose HTML for Cloud SDK you need to register an account with Aspose Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
Then run composer install
Manual Installation
Download the files and include autoload.php
:
Getting Started
Example:
Pass configuration to constructor (see in tests - BaseTest.php)
Note: do not forget to add in php.ini
Tests
To run the unit tests:
Please follow the installation procedure and then run the following:
Documentation for API Endpoints
All URIs are relative to https://api.aspose.cloud/v4.0
Possible conversions:
- HTML -> PDF, XPS, DOCX, MD, MHTML, JPEG, BMP, PNG, TIFF, GIF
- EPUB -> PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
- MD -> PDF, XPS, DOCX, HTML, MHTML, JPEG, BMP, PNG, TIFF, GIF
- MHTML -> PDF, XPS, DOCX, JPEG, BMP, PNG, TIFF, GIF
- SVG -> PDF, XPS, JPEG, BMP, PNG, TIFF, GIF
- JPEG, BMP, PNG, TIFF, GIF -> SVG
HTML API
Class | Method | Description |
---|---|---|
HtmlApi | convertLocalToLocal | Convert a document from the local file to the local file. |
HtmlApi | convertLocalToStorage | Convert a document from the local file to the storage. |
HtmlApi | convertStorageToLocal | Convert a document from the storage to the local file. |
HtmlApi | convertStorageToStorage | Convert a document from the storage to the storage. |
HtmlApi | convertUrlToLocal | Convert the website and saving result to the local file. |
HtmlApi | convertUrlToStorage | Convert the website and saving result to the storage. |
HtmlApi | convert | General function for conversion. |
HtmlApi | vectorizeLocalToLocal | Vectorize an image from the local file to the local file. |
HtmlApi | vectorizeLocalToStorage | Vectorize an image from the local file to the storage. |
HtmlApi | vectorizeStorageToLocal | Vectorize an image from the storage to the local file. |
HtmlApi | vectorizeStorageToStorage | Vectorize an image from the storage to the storage. |
HtmlApi | vectorize | General function for vectorization. |
conversionOptions
Options | Description |
---|---|
PDFOptions | Convert to the PDF format. |
ImageOptions | Convert to images (JPEG, PNG, GIF, TIFF, BMP). |
XPSOptions | Convert to the XPS format. |
DocOptions | Convert to the DOCX format. |
SvgOptions | Trace images to the SVG format. |
MarkdownOptions | Convert the HTML document to the markdown format. |
vectorizationOptions
Field | Type | Description | Note |
---|---|---|---|
error_threshold | float | This parameter defines maximum deviation of points to fitted curve. By default it is 30. | Optional |
max_iterations | int | This parameter defines number of iteration for least-squares approximation method. By default it is 30. | Optional |
colors_limit | int | The maximum number of colors used to quantize an image. Default value is 25. | Optional |
line_width | float | The value of this parameter is affected by the graphics scale. Default value is 1. | Optional |
STORAGE API
Class | Method | Description |
---|---|---|
StorageApi | deleteFile | Delete file |
StorageApi | downloadFile | Download file |
StorageApi | uploadFile | Upload file |
StorageApi | createFolder | Create the folder |
StorageApi | deleteFolder | Delete folder |
StorageApi | getFilesList | Get all files and folders within a folder |
StorageApi | getDiscUsage | Get disc usage |
StorageApi | objectExists | Check if file or folder exists |
StorageApi | storageExists | Check if storage exists |
Documentation For Models
- DiscUsage
- Error
- ErrorDetails
- FilesList
- FilesUploadResult
- ObjectExist
- StorageExist
- StorageFile
- FileVersion
Documentation For Authorization
oauth
- Type: OAuth
- Flow: application
- Authorization URL: "https://api.aspose.cloud/oauth2/token"
- Scopes: N/A
Examples
Tests contain various examples of using the Aspose.HTML SDK.
Author
Aspose
All versions of html-sdk-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.2
aspose/storage-sdk-php Version *
kamermans/guzzle-oauth2-subscriber Version ^1.0