2017 © Pedro PelĆ”ez
 

library mpdf-module

Suporte a utilizaĆ§Ć£o MPDF no zend Framework 2.

image

lucraraujo/mpdf-module

Suporte a utilizaĆ§Ć£o MPDF no zend Framework 2.

  • Monday, October 5, 2015
  • by lucraraujo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 70 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MPDFModule

MĆ³dulo para geraĆ§Ć£o de PDF no zend framework2 utilizando o mpdf., (*1)

A instalaĆ§Ć£o do MPDFModule utiliza o PHP Composer. Para mais informaƧƵes sobre PHP Composer, por favor visite o site oficial PHP Composer., (*2)

Requerimentos

InstalaĆ§Ć£o

  1. Adicione no seu arquivo composer.json:, (*3)

    json { "require": { "lucraraujo/mpdf-module": "dev-master" } }, (*4)

  2. Atualize o composer com o comando php composer.phar update ou composer.phar install
  3. Adicione no arquivo config/application.config.php onde registra os mĆ³dulos:, (*5)

    php 'MPDFModule',, (*6)

Exemplo de utilizaĆ§Ć£o

<?php

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use MPDFModule\View\Model\MpdfModel;

class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        $mpdf = new MpdfModel();
        $mpdf->setOption('paperSize', 'A3'); // padrĆ£o "A4"
        $mpdf->setOption('paperOrientation', 'landscape'); // PadrĆ£o "portrait"
        return $mpdf;
    }
}

The Versions

05/10 2015

dev-master

9999999-dev https://github.com/lucraraujo

Suporte a utilizaĆ§Ć£o MPDF no zend Framework 2.

  Sources   Download

The Requires

 

by Lucas Araujo

zf2 pdf mpdf