A pure PHP library for reading and writing spreadsheet files
Go to file
Adrien Crivelli 8fc29bd1b1
Fix unit tests for all base conversion functions
This include cases were artificial constraints were not checked
(eg: between -512 and 511 for `DECBIN`) and some bugs were 32
bits platform were assumed.

The following are covered:

`BIN2DEC`, `BIN2HEX`, `BIN2OCT`,
`DEC2BIN`, `DEC2HEX`, `DEC2OCT`,
`HEX2BIN`, `HEX2DEC`, `HEX2OCT`,
`OCT2BIN`, `OCT2DEC`, `OCT2HEX`
2016-08-01 02:48:51 +09:00
Build EMail address and changelog date 2014-03-02 14:57:53 +00:00
Documentation #401 : Support for namespaces 2016-03-22 22:40:11 +01:00
Examples #401 : Support for namespaces 2016-03-22 22:20:22 +01:00
src Fix unit tests for all base conversion functions 2016-08-01 02:48:51 +09:00
unitTests Fix unit tests for all base conversion functions 2016-08-01 02:48:51 +09:00
.gitattributes Modify export ignores 2016-01-15 01:19:39 +00:00
.gitignore Update .gitignore 2012-12-27 10:24:48 +01:00
.travis.yml #401 : PHPCS Fixes & Some PHPUnit Fixes 2016-05-18 13:37:00 +02:00
README.md Update README with new name 2016-06-19 18:34:02 +01:00
changelog.txt General: (sim642) Pull Request 489 - Implement actual timezone adjustment into PHPExcel_Shared_Date::PHPToExcel 2016-03-31 23:50:57 +01:00
composer.json Update composer.json 2016-07-14 18:02:23 -03:00
install.txt Update to copyright year in file headers, and minor documentation updates 2013-05-14 12:20:28 +01:00
license.md Added readme and license file 2012-07-05 07:24:57 +02:00

README.md

PHPSpreadsheet - OpenXML - Read, Write and Create spreadsheet documents in PHP - Spreadsheet engine

PHPSpreadsheet 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.

Master: Build Status

Develop: Build Status

Join the chat at https://gitter.im/PHPOffice/PhpSpreadsheet

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.5.0 or higher
  • PHP extension php_zip enabled (required if you need PHPSpreadsheet 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 new development happens on the 1.9 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 fork from 1.9, and submit your pull request back to that 1.9 branch
  • Wherever possible, code changes should conform to PSR-2 standards
  • Helpful article about forking
  • Helpful article about pull requests

License

PHPSpreadsheet is licensed under LGPL (GNU LESSER GENERAL PUBLIC LICENSE)