PHP code example of pdfapi / zf2-pdfapi-module

1. Go to this page and download the library: Download pdfapi/zf2-pdfapi-module 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/ */

    

pdfapi / zf2-pdfapi-module example snippets


'pdfapi' => [
    'apiKey' => 'API_KEY',
],

/**
 * @var $pdf PdfApi
 */
$pdf = $this->serviceLocator->get(PdfApi::class);