Download the PHP package cloudconvert/cloudconvert-php without Composer

On this page you can find all versions of the php package cloudconvert/cloudconvert-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package cloudconvert-php

cloudconvert-php

This is the official PHP SDK for the CloudConvert API v2.

Tests Latest Stable Version Total Downloads

Install

To install the PHP SDK you will need to be using Composer in your project.

Install the SDK alongside Guzzle:

This package is not tied to any specific HTTP client by using PSR-7, PSR-17, PSR-18, and HTTPlug. Therefore, you will also need to install packages that provide psr/http-client-implementation and psr/http-factory-implementation (for example Guzzle).

Creating Jobs

You can use the CloudConvert Job Builder to see the available options for the various task types.

Uploading Files

Uploads to CloudConvert are done via import/upload tasks (see the docs). This SDK offers a convenient upload method:

The upload() method accepts a string, PHP resource or PSR-7 StreamInterface as second parameter.

You can also directly allow clients to upload files to CloudConvert:

Downloading Files

CloudConvert can generate public URLs for using export/url tasks. You can use the PHP SDK to download the output files when the Job is finished.

The download() method returns a PSR-7 StreamInterface, which can be used as a PHP resource using detach().

Webhooks

Webhooks can be created on the CloudConvert Dashboard and you can also find the required signing secret there.

Alternatively, you can construct a WebhookEvent using a PSR-7 RequestInterface:

Signed URLs

Signed URLs allow converting files on demand only using URL query parameters. The PHP SDK allows to generate such URLs. Therefore, you need to obtain a signed URL base and a signing secret on the CloudConvert Dashboard.

Setting a Region

By default, the region in your account settings is used. Alternatively, you can set a fixed region:

Unit Tests

vendor/bin/phpunit --testsuite unit

Integration Tests

vendor/bin/phpunit --testsuite integration

By default, this runs the integration tests against the Sandbox API with an official CloudConvert account. If you would like to use your own account, you can set your API key using the CLOUDCONVERT_API_KEY enviroment variable. In this case you need to whitelist the following MD5 hashes for Sandbox API (using the CloudConvert dashboard).

53d6fe6b688c31c565907c81de625046  input.pdf
99d4c165f77af02015aa647770286cf9  input.png

Resources


All versions of cloudconvert-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
ext-json Version *
php-http/httplug Version ^2.4
php-http/client-common Version ^2.0
php-http/discovery Version ^1.17
php-http/multipart-stream-builder Version ^1.3
psr/http-message Version ^1.1 || ^2.0
psr/http-factory-implementation Version ^1.0
psr/http-client-implementation Version ^1.0
symfony/options-resolver Version ^4.2 || ^5.0 || ^6.0 || ^7.0
netresearch/jsonmapper Version ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cloudconvert/cloudconvert-php contains the following files

Loading the files please wait ....