2017 © Pedro Peláez
 

library cloudconvert

Composer library for Cloud Convert API

image

net-tools/cloudconvert

Composer library for Cloud Convert API

  • Monday, May 21, 2018
  • by nettools.ovh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

net-tools/cloudconvert

Composer library to interface with CloudConvert API

Cloudconvert is a web based service which converts files between multiple file formats. I personnaly use the CloudConvert API to transform PDF files to txt files (I can't search in a PDF file within PHP, but if I convert it to a plain text file, I may use any string search function)., (*1)

Setup instructions

To install net-tools/core package, just require it through composer : require net-tools/cloudconvert:^1.0.0., (*2)

How to use ?

The Client class must be instantiated with an API key (get it from you CloudConvert account). Then, use any of the following method : - listConversions - deleteConversion - deleteConversions - convertDownload (the file to be converted is downloaded on your website) - convertUploadData (the data to be converted is a string) - convertUpload (the file to be converted is uploaded with the request), (*3)

For details about parameters and values returned, you may refer to the CloudConvert API, as this Client class in only a facade pattern, abstracting technical details, such as performing the actual HTTP request, to the end-user., (*4)

Sample

// $APIKEY must contain the API key from your CloudConvert account
// $URL refers to a file hosted on your website will be downloaded 
// and converted (e.g. : http://mysite.info/test.pdf).
$client = new Nettools\CloudConvert\Client($apikey);
$client->convertDownload('pdf', 'txt', $url, array('download'=>'inline'));
// and also :
$client->convertUpload('pdf', 'txt', '/home/tmp/mypdf.pdf', array('download'=>'inline'));

The Versions

21/05 2018

dev-master

9999999-dev

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

10/12 2016

1.0.5

1.0.5.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

07/12 2016

1.0.4

1.0.4.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

06/12 2016

1.0.3

1.0.3.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

05/12 2016

1.0.2

1.0.2.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

03/12 2016

1.0.1

1.0.1.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre

01/12 2016

1.0.0

1.0.0.0

Composer library for Cloud Convert API

  Sources   Download

MIT

The Requires

  • php >= 7.0.0
  • lib-curl *

 

by Avatar Pierre