ilovepdf / iloveimg-php
iLoveIMG Php Api
Installs: 24 967
Dependents: 1
Suggesters: 0
Security: 0
Stars: 26
Watchers: 3
Forks: 8
Open Issues: 5
Requires
- php: >=7.3
- ext-json: *
- firebase/php-jwt: ^6.0
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.21
This package is not auto-updated.
Last update: 2024-10-23 14:11:56 UTC
README
A library in php for iLoveIMG Api
You can sign up for a iLoveIMG account at https://developer.iloveimg.com
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.
Requirements
PHP 7.3 and later.
Install
Using composer
You can install the library via Composer. Run the following command:
composer require ilovepdf/iloveimg-php
To use the library, use Composer's autoload:
require_once('vendor/autoload.php');
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.
require_once('/path/to/iloveimg-php/init.php');
Getting Started
Simple usage looks like:
$iloveimg = new Iloveimg('project_public_id','project_secret_key'); $myTask = $iloveimg->newTask('compress'); $file1 = $myTask->addFile('file1.jpg'); $myTask->execute(); $myTask->download();
Samples
See samples folder.
Documentation
Please see https://developer.iloveimg.com/docs for up-to-date documentation.