zetta-code / zend-mpdf
Suporte a utilização MPDF no zend Framework 3.
Installs: 1 264
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.4 || ^8.0
- laminas/laminas-dependency-plugin: ^2.1
- laminas/laminas-stdlib: ^3.4
- mpdf/mpdf: ^8.0
- ocramius/proxy-manager: ^2.10
Requires (Dev)
- laminas/laminas-mvc: ^3.2
README
Módulo para geração de PDF no ZendFramework 3 utilizando o mpdf.
A instalação do MPDFModule utiliza o PHP Composer. Para mais informações sobre PHP Composer, por favor visite o site oficial PHP Composer.
Requerimentos
Installation
You can install this plugin into your Zend Framework application using composer.
The recommended way to install composer packages is:
composer require zetta-code/zend-mpdf
Exemplo de utilização
<?php namespace Application\Controller; use Laminas\Mvc\Controller\AbstractActionController; use Zetta\ZendMPDF\View\Model\MpdfModel; class IndexController extends AbstractActionController { public function indexAction() { $mpdf = new MpdfModel(); $mpdf->setOption('paperSize', 'A3') // padrão "A4" ->setOption('paperOrientation', 'landscape'); // Padrão "portrait" return $mpdf; } }