2017 © Pedro Peláez
 

symfony-bundle dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

image

railken/dompdf-bundle

This bundle provides a wrapper for using dompdf inside symfony.

  • Monday, April 24, 2017
  • by railken
  • Repository
  • 0 Watchers
  • 0 Stars
  • 56 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 5 Versions
  • 19 % Grown

The README.md

What is DompdfBundle?

Latest Stable Version Latest Unstable Version License, (*1)

Build Status Scrutinizer Code Quality Code Climate Coverage Status SensioLabsInsight, (*2)

Donate to this project using Flattr Donate to this project using PayPal, (*3)

This bundle provides a wrapper for using dompdf inside symfony., (*4)

Installation

php composer.phar require core23/dompdf-bundle

Enabling the bundle

    // app/AppKernel.php

    public function registerBundles()
    {
        return array(
            // ...

            new Core23\DompdfBundle\Core23DompdfBundle(),

            // ...
        );
    }

Usage

Whenever you need to turn a html page into a pdf just use this anywhere in your controller:, (*5)

// Set some html and get the service
$html = '

Sample Title

Lorem Ipsum, (*6)

'; $dompdf = $this->get('dompdf'); // Stream the pdf to the browser $dompdf->streamHtml($html, "document.pdf"); // Get binary content of the pdf document $dompdf->getPdf($html);

Configuration

You can configure each dompdf option under the config key., (*7)

core23_dompdf:
    defaults:
        dpi: 150
        defaultPaperSize: A4
        ...

This bundle is available under the MIT license., (*8)

The Versions

26/06 2016

1.0.1

1.0.1.0 https://core23.de

This bundle provides a wrapper for using dompdf inside symfony.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Gripp

bundle symfony pdf dompdf

12/06 2016

1.0.0

1.0.0.0 https://core23.de

This bundle provides a wrapper for using dompdf inside symfony.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christian Gripp

bundle symfony pdf dompdf