iLovePDF Api - Php Library (
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
samples better remaining files Nov 16, 2017
src dpi Mar 27, 2018
tests tests Jun 29, 2017
.gitignore initial Mar 20, 2017
.travis.yml travis php versions May 26, 2017 time delay Apr 18, 2017
circle.yml circle Apr 10, 2017
composer.json update phpunit May 23, 2017
init.php path exception for no-composer Jun 1, 2017
phpunit.no_autoload.xml initial Mar 20, 2017
phpunit.xml initial Mar 20, 2017 readme Nov 15, 2017

iLovePDF Api - Php Library

Build Status Latest Stable Version Total Downloads License

A library in php for iLovePDF Api

You can sign up for a iLovePDF account at

Develop and automate PDF processing tasks like Compress PDF, Merge PDF, Split PDF, convert Office to PDF, PDF to JPG, Images to PDF, add Page Numbers, Rotate PDF, Unlock PDF, stamp a Watermark and Repair PDF. Each one with several settings to get your desired results.


PHP 5.6 and later.


Using composer

You can install the library via Composer. Run the following command:

composer require ilovepdf/ilovepdf-php

To use the library, use Composer's autoload:


Manual Installation

If you do not wish to use Composer, you can download the latest release. Then, to use the library, include the init.php file.


Getting Started

Simple usage looks like:

$ilovepdf = new Ilovepdf('project_public_id','project_secret_key');
$myTask = $ilovepdf->newTask('compress');
$file1 = $myTask->addFile('file1.pdf');


See samples folder.


Please see for up-to-date documentation.