2017 © Pedro Peláez
 

library phpexcelhandler

Handy php-excel wrapper classes

image

aaugustyniak/phpexcelhandler

Handy php-excel wrapper classes

  • Sunday, January 22, 2017
  • by artur-augustyniak
  • Repository
  • 2 Watchers
  • 1 Stars
  • 866 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Build Status, (*1)

API for simplified PhpExcel navigation and generating reports.

PhpExcelHandler

Right now this stuff works only under *nix systems., (*2)

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., (*3)

Installation

If you don’t have Composer yet, you should get it now., (*4)

  1. Add the package to your composer.json:, (*5)

    "require": {
      ...
      "aaugustyniak/phpexcelhandler": "1.0.0",
      ...
    }
  2. Install:, (*6)

    $ php composer.phar install
  3. And use:, (*7)

```php require_once "vendor/autoload.php";, (*8)

$data = array( array("Column1", "Column2", "Column3"), array(1001, 2001, 3001), array(4001, 5001, 6001), array(7001, 8001, 9001), );, (*9)

$phpExcelFactory = new DefaultPhpExcelFactory(); $spreadSheet = new SpreadSheet($phpExcelFactory);, (*10)

$anchorGuesser = new WriteAnchorGuesser($data);, (*11)

$writer = new WriteTabularCommand($anchorGuesser); $spreadSheet->modify($writer); $outputHtml = $spreadSheet->getHtmlStream(); echo $outputHtml;, (*12)

The Versions