Download the PHP package plumphp/plum-excel without Composer
On this page you can find all versions of the php package plumphp/plum-excel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package plum-excel
PlumExcel includes readers and writers for Microsoft Excel files for Plum. Plum is a data processing pipeline for
PHP.
PlumExcel includes readers and writers for Microsoft Excel files for Plum. Plum is a data processing pipeline for PHP.
Developed by Florian Eckerstorfer in Vienna, Europe.
Features
- Read Microsoft Excel (
.xlsx
and.xls
) files - Write Microsoft Excel (
.xlsx
and.xls
) files - Uses PHPExcel
Installation
You can install plum-excel
using Composer.
Usage
PlumExcel contains a reader and a writer for Plum. Please refer to the Plum documentation for more information about Plum.
You can also find examples of how to use ExcelReader
and ExcelWriter
in the
examples/
folder.
Write Excel files
Writing Excel files is extremely simply. Just pass the filename of the file to the constructor. If you want to add
a header row call the autoDetectHeader()
method.
You can manually set the header names by calling the setHeader()
method and passing an array with names.
However, if you want more control, you can also pass an instance of PHPExcel
to the constructor and the format
(Excel2007
or Excel5
) or an implementation of PHPExcel_Writer_IWriter
.
Read Excel files
Reading Excel files is also pretty simple.
Instead of a filename you can also pass an instance of PHPExcel
to the constructor.
Plum can automatically detect the headers by using Plum\Plum\Converter\HeaderConverter
.
Change Log
Version 0.3 (24 October 2015)
- #2 Handle items that are not arrays
Version 0.2.1 (28 April 2015)
- Fix Plum version
Version 0.2 (22 April 2015)
ExcelReader
supports filename as input- Add support for
Plum\Plum\Reader\ReaderFactory
Version 0.1 (21 April 2015)
- Initial release
License
The MIT license applies to plumphp/plum-excel. For the full copyright and license information, please view the LICENSE file distributed with this source code.
All versions of plum-excel with dependencies
plumphp/plum Version ~0.4
phpoffice/phpexcel Version ~1.8
cocur/vale Version ~0.2