2017 © Pedro Peláez
 

symfony-bundle dompdf-bundle

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

image

nmalo/dompdf-bundle

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

  • Thursday, August 27, 2015
  • by nmalo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5,459 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 20 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

What is DomPDFBundle?

This bundle provides a wrapper for using DomPDF inside Symfony2., (*1)

Installation

When using composer add the following to your composer.json, (*2)

// composer.json
{
    //...

    "require": {
        //...
        "slik/dompdf-bundle" : "dev-master"
    }

    //...
}

and run php composer.phar update slik/dompdf-bundle., (*3)

Next add the following to your appkernel:, (*4)

    // in AppKernel::registerBundles()
    $bundles = array(
        // Dependencies
        new Slik\DompdfBundle\SlikDompdfBundle();
    );

Custom configuration

Copy the dompdf_config..inc.php.dist files to dompdf_config..inc.php to your /app directory and follow the dompdf usage docs., (*5)

Usage

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

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

Sample html

'; $dompdf = $this->get('slik_dompdf'); // Generate the pdf $dompdf->getpdf($html); // Either stream the pdf to the browser $dompdf->stream("myfile.pdf"); // Or get the output to handle it yourself $pdfoutput = $dompdf->output();

The Versions

27/08 2015

dev-master

9999999-dev

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

  Sources   Download

All rights reserved

The Requires

 

development bundle symfony

27/08 2015

1.0.1

1.0.1.0

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

  Sources   Download

All rights reserved

The Requires

 

development bundle symfony

27/08 2015

1.0.0

1.0.0.0

A wrapper for using DomPDF inside Symfony 2 (fork from SlikNL/DompdfBundle)

  Sources   Download

All rights reserved

The Requires

 

development bundle symfony