Download the PHP package conversiontools/conversiontools-php without Composer
On this page you can find all versions of the php package conversiontools/conversiontools-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download conversiontools/conversiontools-php
More information about conversiontools/conversiontools-php
Files in conversiontools/conversiontools-php
Package conversiontools-php
Short Description Conversion Tools REST API PHP Client library
License MIT
Homepage https://github.com/conversiontools/conversiontools-php
Informations about the package conversiontools-php
Conversion Tools API PHP Client
Conversion Tools is an online service that offers a fast and easy way to convert documents between different formats, like XML, Excel, PDF, Word, Text, CSV and others.
This client allows to integrate the conversion of the files into PHP applications.
To convert the files PHP Client uses the public Conversion Tools REST API.
Installation
Installation using Composer
or without composer:
Examples
To use REST API - get API Token from the Profile page at https://conversiontools.io/profile.
Converting file
See example convert-file.php
in the ./examples/
folder.
Converting URL
See example convert-url.php
in the ./examples/
folder.
API
Create ConversionClient
instance with a token.
Where <token>
is API token from the account's Profile page https://conversiontools.io/profile.
Convert input file and download the result
Where
<conversion type>
is a specific type of conversion, from API Documentation.$fileOrUrlInput
is the filename of the input file, or URL of the file to convert (when applicable)$fileOutput
is the filename of the output file$options
is a PHP array with options for a corresponding converter, for example:
Requirements
PHP version 5.4.0 or later.
Documentation
List of available Conversion Types and corresponding conversion options can be found on the Conversion Tools API Documentation page.
License
Licensed under MIT.
Copyright (c) 2021 Conversion Tools
All versions of conversiontools-php with dependencies
ext-json Version *
php Version >=5.4.0