2017 © Pedro Peláez
 

library excel

Excel lib

image

pmvc-plugin/excel

Excel lib

  • Saturday, August 22, 2015
  • by HillLiu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version Latest Unstable Version Build Status License Total Downloads, (*1)

Excel Library (for now write only)

  • Fork from https://github.com/mk-j/PHP_XLSXWriter
  • Replace with pclzip don't need compile ZipArchive in this version
    • http://php.net/manual/en/zip.installation.php

Office Open XML File Formats

  • https://msdn.microsoft.com/en-us/library/aa338205(v=office.12).aspx
  • https://en.wikipedia.org/wiki/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

  • mkdir test_folder
  • curl -sS https://getcomposer.org/installer | php

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

The Versions

22/08 2015

dev-master

9999999-dev

Excel lib

  Sources   Download

MIT

The Requires

 

by Hill

excel plug-in pmvc

17/08 2015

0.1

0.1.0.0

Excel lib

  Sources   Download

MIT

The Requires

 

by Hill

excel plug-in pmvc