pdfapi.io Zend Framework module can be installed with Composer. Run this command:
composer require pdfapi/zf2-pdfapi-moduleor add following line in your project composer.json:
"require": {
"pdfapi/zf2-pdfapi-module": "^1.0"
},Run command
composer updateAdd your module.config.php file following lines
'pdfapi' => [
'apiKey' => 'API_KEY',
],or copy pdfapi.global.php.dist to your config/autload directory and rename it pdfapi.global.php
And in your code
/**
* @var $pdf PdfApi
*/
$pdf = $this->serviceLocator->get(PdfApi::class);For getting API KEY you need to register account at https://pdfapi.io. Generating API KEY will take you 10 seconds. And it is free. Really.