pdfapi / zf2-pdfapi-module
Zend Framework 2 module for converting PDF documents via pdfapi.io
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
pkg:composer/pdfapi/zf2-pdfapi-module
Requires
- php: ^5.5|^7.0
- pdfapi/php-sdk: ^1.0.0
- zendframework/zend-servicemanager: ^2.2
This package is not auto-updated.
Last update: 2021-11-07 23:28:56 UTC
README
Installation
pdfapi.io Zend Framework module can be installed with Composer. Run this command:
composer require pdfapi/zf2-pdfapi-module
or add following line in your project composer.json:
"require": { "pdfapi/zf2-pdfapi-module": "^1.0" },
Usage
Run command
composer update
Add 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.