From acebfca27203d32718d966530e701ee592e3deb2 Mon Sep 17 00:00:00 2001 From: Giancarlos Salas Date: Sun, 28 Jan 2018 18:42:28 -0500 Subject: [PATCH] add example and update list --- README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ade81c0..c865aef 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,26 @@ Using composer from [packagist.org](https://packagist.org/packages/greenter/repo composer require greenter/report ``` +## Example +```php +$invoice = createInvoice(); +$report = new HtmlReport(); + +$report->setTemplate('invoice.html.twig'); + +$html = $report->render($invoice, [ + 'system' => [ + 'logo' => $logo, + ], + 'user' => [ + 'header' => 'Telf: (056) 123375', + 'resolucion' => '212321', + ] +]); + +echo $html; +``` + ## Preview ![Factura](docs/factura.png) @@ -23,9 +43,11 @@ composer require greenter/report - [x] Boleta Electrónica - [x] Nota de Crédito Electrónica - [x] Nota de Débito Electrónica -- [ ] Guía de Remisión Electrónica -- [ ] Retención Electrónica -- [ ] Percepción Electrónica +- [x] Guía de Remisión Electrónica +- [x] Retención Electrónica +- [x] Percepción Electrónica +- [x] Resume diario de Boletas +- [x] Comunicación de Bajas ## Features - Generación de Codigo QR