senailibrary / reportbundle
Geração e padronização de relatórios
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.2
- ensepar/html2pdf-bundle: ^2.0
- symfony/symfony: >=2.6
This package is not auto-updated.
Last update: 2024-11-15 19:57:39 UTC
README
The ReportBundle provides a standard template for quick creation of report form listing. It allows you to add basic calculations columns.
Installation
ReportBundle uses Composer, please checkout the composer website for more information.
The simple following command will install ReportBundle
into your project. It also add a new
entry in your composer.json
and update the composer.lock
as well.
$ composer require senailibrary/reportbundle:dev-master
Getting Started
<?php use SenaiLibrary\ReportBundle\Component\Report; public function pdfAction(Request $request) { $report = new Report(); $collection = "your collection" $detail = new \SenaiLibrary\ReportBundle\Component\Detail($collection); $report->setTitle('Report Title') ->setShowPageNumber(true) ->setOrientation(Report::Portrait) ->addDetail($detail); return new \Symfony\Component\HttpFoundation\Response($report->renderPdf(), 200, array( 'Content-Type' => 'application/pdf', ) ); }