PHP code example of glenntenorio / laravel-ilovepdf

1. Go to this page and download the library: Download glenntenorio/laravel-ilovepdf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

glenntenorio / laravel-ilovepdf example snippets


'providers' => [
    // ...
    GlennTenorio\LaravelIlovepdf\LaravelIlovepdfServiceProvider::class,
];

'aliases' => [
    // ...
    'IlovePDF' => GlennTenorio\LaravelIlovepdf\Facades\Ilovepdf::class,
];

$myTask = ILovePDF::newTask('compress');

$file1 = $myTask->addFile('file1.pdf');

$myTask->execute();

$myTask->setOutputFilename('output.pdf');

$myTask->download();
bash
php artisan vendor:publish --provider="GlennTenorio\LaravelIlovepdf\LaravelIlovepdfServiceProvider" --tag="config"