Local clone of [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet/)
61f5baac4a
Personally, I don't call it a bug if people pass invalid arguments and it complains with an exception; but I've made some basic changes to support DateTime objects and objects with a __toString() method... Any other objects will throw a catchable fatal error, and it's up to user code to implement any exception handler to convert it to an exception and handle it |
||
---|---|---|
Build | ||
Classes | ||
Documentation | ||
Examples | ||
unitTests | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
README.md | ||
changelog.txt | ||
composer.json | ||
install.txt | ||
license.md |
README.md
PHPExcel - OpenXML - Read, Write and Create spreadsheet documents in PHP - Spreadsheet engine
PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, ... This project is built around Microsoft's OpenXML standard and PHP.
File Formats supported
Reading
- BIFF 5-8 (.xls) Excel 95 and above
- Office Open XML (.xlsx) Excel 2007 and above
- SpreadsheetML (.xml) Excel 2003
- Open Document Format/OASIS (.ods)
- Gnumeric
- HTML
- SYLK
- CSV
Writing
- BIFF 8 (.xls) Excel 95 and above
- Office Open XML (.xlsx) Excel 2007 and above
- HTML
- CSV
- PDF (using either the tcPDF, DomPDF or mPDF libraries, which need to be installed separately)
Requirements
- PHP version 5.2.0 or higher
- PHP extension php_zip enabled (required if you need PHPExcel to handle .xlsx .ods or .gnumeric files)
- PHP extension php_xml enabled
- PHP extension php_gd2 enabled (optional, but required for exact column width autocalculation)
Want to contribute?
If you would like to contribute, here are some notes and guidlines:
- All development happens on the develop branch, so it is always the most up-to-date
- The master branch only contains tagged releases
- If you are going to be submitting a pull request, please branch from develop, and submit your pull request back to the develop branch
- Helpful article about forking
- Helpful article about pull requests
License
PHPExcel is licensed under LGPL (GNU LESSER GENERAL PUBLIC LICENSE)