inteleon/export-builder

Export data to pdf and csv

1.1.5 2018-09-25 08:50 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:02:28 UTC


README

Latest Version on Packagist Software License Total Downloads

Install

Via Composer

$ composer require inteleon/export-builder

Usage

(new ReportBuilder())
->title('Random data')
->text('Period: Big bang - Future')

->addColumn('first', 47.5, null)
->addColumn('second',  47.5, null)
->addColumn('third', 47.5, '5678', true)
->addColumn('fourth', 47.5, '1234', false)

->numAmountColumns(2)
->data($data)
->addAccountingOrder(true)

->filename('report_test')
->exporter('pdf')
->render();
    

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

License

The MIT License (MIT). Please see License File for more information.