2017 © Pedro Peláez
 

library dompdfmodule

DOMPDF Zend Framework lightweight module

image

mikemix/dompdfmodule

DOMPDF Zend Framework lightweight module

  • Friday, August 26, 2016
  • by mikemix
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,461 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 6 % Grown

The README.md

dompdfmodule

DOMPDF library wrapper as lightweight ZF2/ZF3 module., (*1)

Build Status, (*2)

Requirements

Installation

Installation of DOMPDFModule uses PHP Composer. For more information about PHP Composer, please visit the official PHP Composer site., (*3)

Installation steps

  1. cd my/project/directory
  2. create a composer.json file with following contents:, (*4)

    json { "require": { "mikemix/dompdfmodule": "^3.0" } }, (*5)

  3. install PHP Composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)
  4. run php composer.phar install
  5. open my/project/directory/config/application.config.php and add the following key to your modules:, (*6)

    php 'dompdfmodule',, (*7)

Configuration options

You can override default options via the dompdf key in your local or global config files. See the dompdfmoule\Service\dompdfFactory.php file for the list of default settings., (*8)

Full list of possible settings is available at the official DOMPDF library site., (*9)

Example usage

Side note: use of getServiceLocator() in the controller is deprecated since in ZF3. Make sure you create your controller via a factory and inject the Dompdf object in the constructor., (*10)

<?php

// some controller

    public function indexAction()
    {
        /** @var \Dompdf\Dompdf $dompdf */
        $dompdf = $this->getServiceLocator()->get('dompdf');
        $dompdf->load_html('<strong>Ehlo World</strong>');
        $dompdf->render();

        file_put_contents(__DIR__ . '/document.pdf', $dompdf->output());
    }

The Versions

26/08 2016

dev-master

9999999-dev https://www.phpcontext.com

DOMPDF Zend Framework lightweight module

  Sources   Download

The Requires

 

zf2 pdf zf3 dompdf

25/08 2016

3.0.0

3.0.0.0 https://www.phpcontext.com

DOMPDF Zend Framework lightweight module

  Sources   Download

The Requires

 

zf2 pdf zf3 dompdf

02/08 2016

2.0.0

2.0.0.0 http://www.phpcontext.com

DOMPDF ZF2 lightweight module

  Sources   Download

The Requires

 

zf2 pdf dompdf

06/01 2015

1.0.3

1.0.3.0 http://www.phpcontext.com

DOMPDF ZF2 lightweight module

  Sources   Download

The Requires

 

zf2 pdf dompdf

06/01 2015

1.0.2

1.0.2.0 http://www.phpcontext.com

DOMPDF ZF2 lightweight module

  Sources   Download

The Requires

 

zf2 pdf dompdf

03/11 2014

1.0.1

1.0.1.0 http://www.phpcontext.com

DOMPDF ZF2 lightweight module

  Sources   Download

The Requires

 

zf2 pdf dompdf

03/11 2014

1.0

1.0.0.0 http://www.phpcontext.com

DOMPDF ZF2 lightweight module

  Sources   Download

The Requires

 

zf2 pdf dompdf