Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Manley committed Dec 6, 2015
1 parent 8ff911a commit dcb485a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
- Workbook: add toString() method to return the workbook binary data as a string.
- Modified to act as a drop-in compatible replacement for PEAR's Spreadsheet_Excel_Writer, as far as I need:
* format: make setting fonts with set_properties() compatible with PEAR's Spreadsheet_Excel_Writer.
* workbook: add setCustomColor() method (as alias of set_custom_color).
* workbook: add alias method setCustomColor().
* workbook: add send() method.
* spreadsheet: add alias methods setMerge(), setColumn(), writeFormula(), writeNumber(), writeString(), writeUrl().
- Worksheet: add getDimensions() method.
- Worksheet: Fix some warnings. Fix bug (mistake porting from Perl) setting $grbit in _store_colinfo().

0.3.0 (2005-11-01):
- Fixed cell merging (fix contributed by Nicolas Kahn - thanks!)
Expand Down
25 changes: 19 additions & 6 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Where to start
--------------
I've included six example PHP scripts which are also taken out of the
Spreadsheet::WriteExcel package and ported to PHP:
- example-simple.php
- example-merge2.php
- example-stocks.php
- example-textwrap.php
- example-demo.php
- example-bigfile.php
- examples/simple.php
- examples/merge2.php
- examples/stocks.php
- examples/textwrap.php
- examples/demo.php
- examples/bigfile.php
All you have to do is to tar xzvf the package to a directory accessible
via a web server. Then fetch any of the example scripts with your
favourite web browser and Excel should come into place and show you
Expand Down Expand Up @@ -115,3 +115,16 @@ Syntax different from SpreadSheet::WriteExcel
---------------------------------------------
The worksheet methods set_h_pagebreaks() and set_v_pagebreaks() take
exactly one argument which must be an array with the desired page breaks.



Perfomance comparison (added by Craig Manley, 2015-12-06)
---------------------------------------------------------
Writing a table of 8 fields and 950 rows to an Excel file resulted in these average elapsed times:
PHPExcel: 7.417
PEAR Spreadsheet_Excel_Writer: 1.078
php_writeexcel: 2.065

So clearly, PEAR's Spreadsheet_Excel_Writer is almost twice as fast.
PHPExcel more modern, but by far the slowest and consumes huge amounts of memory,
which is the only reason I tried with this library, updating it slightly in the process.

0 comments on commit dcb485a

Please sign in to comment.