Commit Graph
320 Commits
Author SHA1 Message Date
Adrien Loison e0c84f77b1 Merge pull request #87 from box/use_travis_cache
Use Travis cache
2015-08-18 21:56:51 -07:00
Adrien Loison b78227c370 Use Travis cache
This is to avoid re-downloading all dependencies for every build.
2015-08-18 21:52:25 -07:00
Adrien Loison 444308d42c Merge pull request #84 from box/rename_strikethrough
Rename StrikeThrough to Strikethrough
v2.1.0
2015-08-13 23:18:26 -07:00
Adrien Loison 353d4e86a5 Merge pull request #83 from box/wrap_text_on_multiline_strings
Set wrap text style when multiline string encountered
2015-08-13 23:18:11 -07:00
Adrien Loison f043f8d4d0 Rename StrikeThrough to Strikethrough 2015-08-13 23:09:43 -07:00
Adrien Loison c8ddcf5441 Set wrap text style when multiline string encountered
Fixes #10
If a cell contains a multiline string, "wrap text" style option should
automatically be set.
2015-08-13 23:03:28 -07:00
Adrien Loison 4a346cef0c Update README.md
Display style options as a table instead of bullet points
2015-08-13 23:02:37 -07:00
Adrien Loison 1c8934790d Update README.md
Added "How to style a row" section
2015-08-13 20:33:37 -07:00
Adrien Loison 2a1925bc51 Merge pull request #82 from box/fix_double_equals
Replace == with ===
2015-08-10 19:21:18 -07:00
Adrien Loison 2183ff6738 Replace == with === 2015-08-10 19:13:40 -07:00
Adrien Loison 380ee524a5 Merge pull request #80 from box/add_style_support
Add support for styling
2015-08-10 19:11:59 -07:00
Adrien Loison 21263a0730 Add support for styling
Added top level methods on the Writer:
 - addRowWithStyle()
 - addRowsWithStyle()

Added a style builder, to easily create new styles.
Each writer can specify its own default style and all styles will automatically inherit from it.

For now, the style properties supported are:
 - bold
 - italic
 - underline
 - strikethrough
 - font size
 - font name
 - wrap text (alignment)
2015-08-07 20:39:17 -07:00
Adrien Loison 0104714cbd Merge pull request #79 from jtreminio/master
getRowIterator() is on $sheet variable
2015-07-29 20:44:56 -07:00
Juan Treminio 611a091290 getRowIterator() is on $sheet variable 2015-07-29 22:04:47 -05:00
Adrien Loison 40a86c4b6c Merge pull request #77 from box/fix_csv_reader_empty_last_line
Fix CSV reader when last line is empty
v2.0.1
2015-07-29 10:27:44 -07:00
Adrien Loison 8a3b895afc Fix CSV reader when last line is empty
If the last line was empty, it would create an infinite loop...
2015-07-29 10:17:51 -07:00
Adrien Loison e3f7ecfa64 Merge pull request #78 from box/fix_xml_reader_open_overriding
Fix XMLReader open() overriding
2015-07-29 10:17:34 -07:00
Adrien Loison 93d7aafe8b Fix XMLReader open() overriding
This is to avoid a warning in PHP7 (and also because that's how it should be!)
2015-07-29 09:59:33 -07:00
Adrien Loison dc53b6aa20 Update README.md
Change Travis badge from PNG to SVG
2015-07-27 22:26:36 -07:00
Adrien Loison 30aa8970d5 Update README.md
Bump "require" version in preparation of the 2.0.0 release
v2.0.0
2015-07-27 22:21:33 -07:00
Adrien Loison 2ec12dd16b Merge pull request #76 from box/csv_multiple_encodings
Csv multiple encodings
2015-07-27 21:02:52 -07:00
Adrien Loison fd84c6f1c8 Update README 2015-07-27 20:59:21 -07:00
Adrien Loison 5e1cfbfdbd Attempt to convert the non UTF-8 strings to UTF-8 2015-07-27 20:59:12 -07:00
Adrien Loison d946f12951 Support for multiple BOMs depending on the selected encoding 2015-07-27 09:36:55 -07:00
Adrien Loison 03d1917080 Merge pull request #75 from box/xml_reader_wrappers
Add wrappers around XMLReader and SimpleXMLElement
2015-07-27 09:36:13 -07:00
Adrien Loison 1ba10ed2b0 Add wrappers around XMLReader and SimpleXMLElement to improve error handling 2015-07-27 00:49:43 -07:00
Adrien Loison be3932af18 Merge pull request #73 from box/iterators
Moved readers to iterators
2015-07-27 00:26:26 -07:00
Adrien Loison 37d87a8a27 Fix various problems 2015-07-27 00:23:18 -07:00
Adrien Loison 86a4c3790a Adding more tests 2015-07-26 23:53:49 -07:00
Adrien Loison 2345a80784 Update README for iterators 2015-07-26 23:53:18 -07:00
Adrien Loison 15aab7902a Factory should return Interface 2015-07-26 23:53:17 -07:00
Adrien Loison c672558a18 Update Writer folder structure to match Reader new structure 2015-07-26 23:53:17 -07:00
Adrien Loison c52dd7bde8 Remove old reader files 2015-07-26 23:53:17 -07:00
Adrien Loison ae3ee357ff Moved readers to iterators
Instead of the hasNext() / next() syntax, readers now implements the PHP iterator pattern.
It allows readers to be used with a foreach() loop.

All readers now share the same structure (CSV is treated as having exactly one sheet):
- one concrete Reader
- one SheetIterator, exposed by the Reader
- one or more Sheets, returned at every iteration
- one RowIterator, exposed by the Sheet

Introducing the concept of sheets for CSV may be kind of confusing but it makes Spout way more consistent.
Also, this confusion may be resolved by creating a wrapper around the readers if needed.

-- This commit does not delete the old files, not change the folder structure for Writers. This will be done in another commit.
2015-07-26 23:53:17 -07:00
Adrien Loison 322c3d0738 Merge pull request #74 from box/scrutinizer
Use Scrutinizer instead of Coveralls
2015-07-26 23:52:30 -07:00
Adrien Loison 0adbf439f5 Use Scrutinizer instead of Coveralls 2015-07-26 23:49:19 -07:00
Adrien Loison ad6b881685 Update README.md 2015-07-16 23:16:31 -07:00
Adrien Loison d410224e2d Merge pull request #71 from box/manual_autoloader
Autoloader for manual installation
2015-07-16 00:51:50 -07:00
Adrien Loison 79982a6107 Autoloader for manual installation
Added PSR4 Autoloader
Updated README with manual installation instructions
2015-07-16 00:46:15 -07:00
Adrien Loison 6ae79b63b3 Merge pull request #67 from box/caching_strategies
Caching strategies
v1.1.0
2015-07-14 10:58:37 -07:00
Adrien Loison 277b665dad Merge pull request #68 from box/add_coverage_abstract_reader
Improve coverage AbstractReader
2015-07-14 10:55:22 -07:00
Adrien Loison b0c7c6ca84 Improve coverage AbstractReader 2015-07-14 10:48:03 -07:00
Adrien Loison 494c506d56 Add logic to automatically select the best caching strategy
Based on the number of unique shared strings as well as the available memory amount,
one strategy will be chosen over the other.
The algorithm is based on empirical data and super safe so it may need to be tuned.
2015-07-14 02:26:01 -07:00
Adrien Loison 334f7087da Add in-memory caching strategy for shared strings
In-memory implementation using SplFixedArray
Updated code and tests to support errors when reading XML nodes (useful when reading XML files used for attacks)
Removed LIBXML_NOENT option (which DOES substitute entities...)
Added test for Quadratic Blowup attack
2015-07-13 00:29:59 -07:00
Adrien Loison 2dcb86aae9 Move shared strings caching strategy into its own component
This will help implementing different caching strategies:
- file based
- in-memory
2015-07-11 14:12:18 -07:00
Adrien Loison 3edb056286 Merge pull request #60 from Lewiscowles1986/Update-XLSX-Reader
Separated getCellValue into multiple functions
v1.0.11
2015-07-06 10:12:35 -07:00
Lewis Cowles edc0c22009 Update XLSX.php 2015-07-06 12:10:41 +01:00
Adrien Loison 0319e578cb Update README.md 2015-07-02 16:19:55 -07:00
Lewis 1e2452934c Additional tests for Cell Types 2015-07-02 19:35:23 +01:00
Lewis 3e1793d852 Changes made to XLSX.php 2015-07-02 17:56:55 +01:00