PHP code example of phplegends / api-2-pdf-v2

1. Go to this page and download the library: Download phplegends/api-2-pdf-v2 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/ */

    

phplegends / api-2-pdf-v2 example snippets


$apiKey = 'My_api_key';

$pdf = Api2Pdf::create($apiKey);


$pdf->chrome()->generatePdfFromUrl('https://google.com');