aaugustyniak / phpexcelhandler
Handy php-excel wrapper classes
1.0.4
2017-01-22 10:51 UTC
Requires
- php: >=5.3.3 <=5.6.29
- irongit/symfony2-stream-response: v1.0
- phpoffice/phpexcel: >=1.7.9
- symfony/http-foundation: >=v2.1.10
- tecnickcom/tcpdf: >=6.0.013
Requires (Dev)
- phpunit/phpunit: >=3.7.0 <=5.3.5
- symfony/finder: >=2.1.0
This package is not auto-updated.
Last update: 2024-11-09 17:45:36 UTC
README
API for simplified PhpExcel navigation and generating reports.
PhpExcelHandler
Right now this stuff works only under *nix systems.
If you want i.e. fill excel template with data and send it to output or save locally it is for you. Navigator classes take PhpExcel cell selection into cartesian like coordinates.
Installation
If you don’t have Composer yet, you should get it now.
-
Add the package to your
composer.json
:"require": { ... "aaugustyniak/phpexcelhandler": "1.0.0", ... }
-
Install:
$ php composer.phar install
-
And use:
require_once "vendor/autoload.php"; $data = array( array("Column1", "Column2", "Column3"), array(1001, 2001, 3001), array(4001, 5001, 6001), array(7001, 8001, 9001), ); $phpExcelFactory = new DefaultPhpExcelFactory(); $spreadSheet = new SpreadSheet($phpExcelFactory); $anchorGuesser = new WriteAnchorGuesser($data); $writer = new WriteTabularCommand($anchorGuesser); $spreadSheet->modify($writer); $outputHtml = $spreadSheet->getHtmlStream(); echo $outputHtml;