0.1 2015-08-17 16:10 UTC

This package is auto-updated.

Last update: 2024-10-27 13:57:23 UTC


README

Latest Stable Version Latest Unstable Version Build Status License Total Downloads

Excel Library (for now write only)

Office Open XML File Formats

How to use?

include_once('vendor/autoload.php');
PMVC\Load::plug();

$data = array(
    array('year','month','amount'),
    array('2003','1','220'),
    array('2003','2','153.5'),
);

$writer = \PMVC\plug('excel')->create();
$writer->writeSheet($data);
$writer->writeToFile('output.xlsx');

Install with Composer

1. Download composer

2. Install by composer.json or use command-line directly

2.1 Install by composer.json

  • vim composer.json
{
    "require": {
        "pmvc-plugin/excel": "dev-master"
    }
}
  • php composer.phar install

2.2 Or use composer command-line

  • php composer.phar require pmvc-plugin/excel