pdfapi / zf-pdfapi-module

This is Zend Framework module for pdfapi.io PDF generator service to start using service even more quicker on Zend Framework version 3 projects


Zend Framework 3 module for pdfapi.io service

Installation

pdfapi.io Zend Framework module can be installed with Composer. Run this command:

composer require pdfapi/zf3-pdfapi-module

or add following line in your project composer.json:

"require": {
    "pdfapi/zf3-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

Add PdfApi module to your modules.config.php

return [
    'PdfApi',
    'Application',
];

Use factories to get the pdfapi instance into controllers or services

'controllers' => [
        'factories' => [
            Controller\IndexController::class => function ($cm) {
                return new IndexController($cm->get(PdfApi::class));
            },
        ],
    ],

Use it in the code like this: https://github.com/pdfapi/zf3-sample-app/blob/master/module/Application/src/Controller/IndexController.php

For getting everything up and running quickly we have created sample skeleton app, where we use PdfApi module. Source code is located in this repository: https://github.com/pdfapi/zf3-sample-app

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.

No license file found for this Module
php composer.phar require "pdfapi/zf3-pdfapi-module"

Require

  • php: ^5.5|^7.0
  • zendframework/zend-servicemanager: ^3.0.1
  • pdfapi/php-sdk: ^1.0.0