Download the PHP package convertapi/convertapi-php without Composer
On this page you can find all versions of the php package convertapi/convertapi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download convertapi/convertapi-php
More information about convertapi/convertapi-php
Files in convertapi/convertapi-php
Package convertapi-php
Short Description Convert API PHP Client
License MIT
Homepage https://github.com/ConvertAPI/convertapi-php
Informations about the package convertapi-php
ConvertAPI PHP Client
Convert your files with our online file conversion API
ConvertAPI helps in converting various file formats. Creating PDF and Images from various sources like Word, Excel, Powerpoint, images, web pages or raw HTML codes. Merge, Encrypt, Split, Repair and Decrypt PDF files and many other file manipulations. You can integrate it into your application in just a few minutes and use it easily.
Requirements
PHP 8.1.0 and later.
Installation
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
Manual Installation
If you do not wish to use the Composer, you must require ConvertApi autoloader:
Dependencies
Library requires the following extensions in order to work properly:
If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.
Usage
Configuration
You can get your API credentials at https://www.convertapi.com/a
File conversion
Convert file to PDF example. All supported formats and options can be found here.
Other result operations:
Convert file url
Specifying from format
Additional conversion parameters
ConvertAPI accepts additional conversion parameters depending on selected formats. All conversion parameters and explanations can be found here.
User information
You can always check your usage by fetching user information.
Alternative domain
Use setApiBase
method to set alternative service domain. Dedicated to the region domain list.
More examples
Find more advanced examples in the examples/ folder.
Development
Testing is done with PHPUnit:
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ConvertAPI/convertapi-php. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
ConvertAPI PHP Client is available as open source under the terms of the MIT License.
All versions of convertapi-php with dependencies
ext-curl Version *
ext-json Version *