Adrien Loison
984c9c1f67
Improve error message when invalid sheet name set ( #364 )
...
Instead of listing all the requirements, only list the requirements that actually failed to be met.
2016-11-29 14:36:57 -08:00
Adrien Loison
e255895cff
Refactor ODS escaper ( #363 )
2016-11-28 17:03:13 -08:00
Adrien Loison
e276b4378e
Fix crash when using associative array with empty row ( #354 )
2016-11-03 13:45:18 -07:00
Adrien Loison
9ce77405e0
Refactor Style::mergeWith() and StyleHelper::getStyleSectionContent() ( #346 )
2016-10-19 17:01:19 -07:00
Adrien Loison
4cb30bc36d
Add Scrutinizer Code Quality badge ( #345 )
2016-10-18 20:29:33 -07:00
Adrien Loison
bf616dee90
Bump dev-master version ( #344 )
2016-10-18 20:03:15 -07:00
Adrien Loison
3a330debb3
Move ReaderCommonOptions class to Common folder ( #343 )
2016-10-18 16:55:05 -07:00
Adrien Loison
a19231fb68
Introduce XMLProcessor to reduce ODS,XLSX readers' complexity ( #342 )
2016-10-18 16:28:26 -07:00
Adrien Loison
73d5d0ea17
Remove text suffix in XLSX date formats ( #341 )
...
Some date formats have a text suffix, e.g. "mm/dd/yy;@". We should remove the ";...@" part.
2016-10-18 11:55:36 -07:00
Adrien Loison
687c321363
Refactor SharedStringsHelper::extractSharedStrings ( #340 )
2016-10-18 00:03:15 -07:00
Adrien Loison
2fa01cd838
Remove unused SimpleXMLElement::children() method ( #339 )
2016-10-17 22:49:37 -07:00
Adrien Loison
752f4bf64e
Add ReaderOptions for all readers ( #338 )
...
Instead of passing every single option down the chain
2016-10-17 22:41:36 -07:00
Adrien Loison
b61323d7d2
Remove XLSX references in ODS Writer ( #337 )
2016-10-17 11:54:49 -07:00
Adrien Loison
179ab483d6
Empty rows do not need to be written for XLSX files ( #336 )
2016-10-17 11:40:52 -07:00
Adrien Loison
2fafb63115
ODS Reader should support num-rows-repeated for non empty rows ( #335 )
2016-10-17 10:51:12 -07:00
Adrien Loison
5ef5647558
Make getConcreteSheetIterator() protected ( #334 )
2016-10-17 10:26:37 -07:00
Adrien Loison
0978d340f0
Option to keep empty rows ( #331 )
...
* Add option to preserve empty rows when reading an XLSX file
* Add option to preserve empty rows when reading a CSV file
* Add option to preserve empty rows when reading an ODS file
2016-10-17 10:20:02 -07:00
Adrien Loison
77178122c3
Fix output file deletion after exception thrown on write ( #328 )
...
For relative paths, it would not work as the FileSystemHelper would not allow deleting a file that's not part of its base folder.
2016-10-12 11:15:07 -07:00
Adrien Loison
23f8cc4f05
Temp files should be deleted when an exception is thrown ( #327 )
...
If an exception is thrown while writing data, instead of letting the developer handle this situation gracefully, Spout can attempt to delete all the temporary files that were created so far, as well as the output file as it won't be completed and therefore corrupted.
2016-10-11 15:08:37 -07:00
Adrien Loison
442a9837f1
Removing license badge ( #320 )
...
As Github now provides this information in the project's header
2016-09-30 10:11:05 -07:00
Adrien Loison
cc07072cbb
Better support for Date custom format ( #316 )
...
- To determine if a style should apply a date format, the presence of "applyNumberFormat" attribute on the "cellXfs" section of styles.xml is now optional. We only look at the "numFmtId" attribute (but early return if "applyNumberFormat" is set to "0").
- The format code can contain lowercase AND now uppercase characters as its pattern.
- "General" format code used as a custom format is now supported. It seems to be used by a bunch of programs...
2016-09-24 10:46:42 -07:00
Adrien Loison
a07a96f523
Bump dev-master version ( #309 )
...
Bump to `2.7.x-dev` as 2.6.0 just got released
2016-09-08 09:34:43 -07:00
Adrien Loison
3e0afd858f
Apply custom style to empty cells if needed ( #307 )
...
Fixes #295
If a row should be written with a custom style, the handling of empty cells should change.
Instead of being skipped entirely, empty cells will be applied the custom style, if this style has custom background color or borders.
If not, then the cell definition can still be skipped.
2016-09-07 17:04:31 -07:00
Adrien Loison
d4e57b1f0d
Add consistency using getCellXML() ( #306 )
2016-09-06 19:47:18 -07:00
Adrien Loison
435a9a016e
Improve XLSX Escaper performance ( #305 )
2016-09-03 11:04:25 -07:00
Adrien Loison
c94694cb60
API to set default row style ( #290 )
2016-08-16 21:18:44 -07:00
Adrien Loison
b2dc0c3fa9
Fix tests on Windows ( #288 )
2016-08-10 12:09:37 -07:00
Adrien Loison
7f65993c87
Spout should be able to read prefixed styles.xml ( #287 )
2016-08-09 20:53:40 -07:00
Adrien Loison
b75a3e34fc
XLSX cells containing date values should respect shouldFormatDate option ( #282 )
...
Return the ISO 8601 date string directly if option is set
2016-07-20 20:12:00 -07:00
Adrien Loison
82605ab57b
Do not return anything from constructor ( #275 )
2016-07-14 10:53:44 -07:00
Adrien Loison
54a1a09e29
Bump dev-master version ( #270 )
2016-07-11 20:07:56 +02:00
Adrien Loison
a8eb7ad39c
Shared strings table without uniqueCount and count should work ( #269 )
...
Use file based strategy in this case
2016-07-11 19:03:37 +02:00
Adrien Loison
ffea8871a6
Add support for missing cell reference ( #268 )
...
When describing a cell, the cell reference (r="A1") is optional.
When not present, we should just increment the index of the last processed row.
2016-07-11 18:15:55 +02:00
Adrien Loison
192659cb24
Update README.md ( #256 )
2016-06-19 20:20:49 -07:00
Adrien Loison
1891c0b053
Fix XLSX reading when shared strings is missing the uniqueCount attribute ( #255 )
...
Use "count" attribute as a fallback
2016-06-16 10:06:11 -07:00
Adrien Loison
dc31d6e8c2
Update .scrutinizer.yml ( #248 )
2016-06-09 10:52:01 -07:00
Adrien Loison
8edd8e2401
Clear previous output when openToBrowser() called ( #243 )
...
If any character has been outputted before, the generated file will be corrupted.
2016-06-08 13:53:41 -07:00
Adrien Loison
1d3a9f939c
Convert escapers to singletons ( #239 )
2016-05-30 13:55:21 -07:00
Adrien Loison
251c0bebc1
Adding open_file_in_zip() helper function to XMLReader ( #238 )
2016-05-29 23:22:57 -07:00
Adrien Loison
03866a6604
Support XLSX with prefixed XML files ( #237 )
...
While the standard is not to have prefixes, some XLSX files have XML files containing a prefix.
Microsoft has a tool that generates such files: https://msdn.microsoft.com/en-us/library/office/gg278316.aspx
2016-05-29 22:16:59 -07:00
Adrien Loison
2ed30321b4
ODS Writer should accept associative arrays ( #232 )
2016-05-25 19:59:18 -07:00
Adrien Loison
2c80b1f23a
XLSX Reader should add a space between text nodes ( #229 )
...
When a cell contains multiple text nodes, the cell value is currently obtained by concatenating the value of each text node.
Instead, values should still be concatenated but a space should be added in between.
2016-05-23 14:15:48 -07:00
Adrien Loison
a24e794177
Update README.md ( #228 )
...
Fixed the amount of memory used by Spout, as it used to take into account the memory used by PHPUnit.
2016-05-23 13:36:07 -07:00
Adrien Loison
104cd9b811
Option to return formatted dates instead of PHP objects ( #226 )
...
When reading spreadsheets, Spout should be able to return formatted dates, as shown when opened with Excel for instance.
It currently only returns DateTime/DateInterval objects, making it impossible to read + write, as the Writer does not accept objects.
2016-05-20 16:08:35 -07:00
Adrien Loison
a6a6b158de
Pin PHPUnit version to keep support for PHP5.4 ( #227 )
2016-05-20 16:00:22 -07:00
Adrien Loison
b4724906c4
Add support for cells formatted as time ( #224 )
...
Cells formatted as "time" have values between 0 and 1. These values used to be considered as invalid.
Note: this uses what was started in #202
2016-05-19 13:10:47 -07:00
Adrien Loison
bb20d2e6bb
Update Scrutinizer dependency and code coverage ( #223 )
2016-05-19 11:25:00 -07:00
Adrien Loison
b8fd789ac0
Retrieve XLSX sheets in order of appearance ( #220 )
...
Instead of relying on the ID, sheets should be retrieved in the order they appear in the file.
Workbook.xml describes the correct order.
This allows the reader to read data in the correct order when sheets have been manually moved after creation.
2016-05-19 10:37:48 -07:00
Adrien Loison
5a7c2c1262
Handle General number format as non date ( #221 )
...
If the number format is set to General (id = 0), do no try to format the value as a date
2016-05-19 09:40:12 -07:00
Adrien Loison
e9cd7a397e
Merge pull request #199 from box/check_valid_resource_on_close
...
Check file handle is valid before manipulating it
2016-04-12 11:03:15 -07:00
Adrien Loison
71a6f6a937
Merge pull request #196 from madflow/trim-inline-strings
...
Fix #195
2016-04-09 13:20:48 -07:00
Adrien Loison
b69e28050b
Merge pull request #187 from skeleton/issue-183
...
Fix line breaks on CSV reader
2016-03-23 17:02:42 -07:00
Adrien Loison
e321f30c3b
Merge pull request #191 from box/close_file_pointer_when_done_writing
...
Writers did not close written file pointer
2016-03-23 10:45:42 -07:00
Adrien Loison
6c57125c0c
Merge pull request #189 from madflow/ods-missing-values
...
Fixes for #184
2016-03-21 10:24:38 -07:00
Adrien Loison
049fd990b9
Merge pull request #188 from box/stream_wrapper_support
...
Custom stream wrapper support
2016-03-18 18:09:22 -07:00
Adrien Loison
0c90d102ef
Merge pull request #179 from lichunqiang/gitattributes
...
Add .gitattributes
2016-02-21 18:11:03 -08:00
Adrien Loison
10d1140a95
Merge pull request #175 from IlyaBakhlin/master
...
Fixing the boolean bug.
2016-02-15 16:43:30 -08:00
Adrien Loison
771afcb5f1
Merge pull request #173 from sfichera/master
...
Support for variable EOL for CSV
2016-02-14 00:20:48 -08:00
Adrien Loison
e4cc8b4eaa
Merge pull request #169 from welcoMattic/patch-1
...
Update README.md
2016-01-27 13:26:18 -08:00
Adrien Loison
209372462b
Merge pull request #167 from box/fix_int_float_value_formatters
...
Fix CellValueFormatter for numeric values
2016-01-14 11:29:01 -08:00
Adrien Loison
c48c07db99
Merge pull request #165 from box/support_xlsx_sheets_random_order
...
Support XLSX that are defined in random order
2016-01-08 08:50:49 -08:00
Adrien Loison
4bfbb41c95
Merge pull request #162 from box/update_branch_alias
...
Update dev-master branch alias
2015-12-22 12:22:15 +01:00
Adrien Loison
3c3294061a
Merge pull request #161 from garak/patch-1
...
support branch alias
2015-12-21 12:05:16 +01:00
Adrien Loison
05489cda88
Merge pull request #160 from box/reference-wiki
...
Update README.md
2015-12-21 10:52:46 +01:00
Adrien Loison
128db45f22
Update README.md
2015-12-21 10:45:02 +01:00
Adrien Loison
9a85d84a2e
Merge pull request #155 from KiNgMaR/Fix-Dates-Beyond-2037
...
XLSX Date Support / Fix for years beyond 2037
2015-12-17 10:59:45 -08:00
Adrien Loison
8d27b3097d
Merge pull request #154 from box/fix_font_color_check
...
Fix hasSetFontColor check
2015-12-08 10:35:49 -08:00
Adrien Loison
22daea5f9a
Merge pull request #153 from box/improve_zip_for_mime_detection
...
Improve ZIP interface for better mime detection
2015-12-05 19:13:47 -08:00
Adrien Loison
44d72d8245
Merge pull request #152 from box/proper_mime_type_detection
...
Proper mime type detection for XLSX files
2015-12-05 00:30:28 -08:00
Adrien Loison
05a9a1b60a
Merge pull request #146 from box/update_perf_tests_doc
...
Update README.md
2015-11-13 10:36:40 -08:00
Adrien Loison
a76624a721
Update README.md
2015-11-13 10:14:10 -08:00
Adrien Loison
90cbb7b5a6
Merge pull request #145 from box/speed_up
...
Various speed improvements
2015-11-12 14:09:52 -08:00
Adrien Loison
cb5dae22e4
Merge pull request #143 from box/xlsx_skip_empty_cells_on_write
...
[XLSX] Skip empty cells on write
2015-11-10 17:26:26 -08:00
Adrien Loison
582da8403d
Merge pull request #139 from box/fix_phpdoc
...
Fix PHPDoc to work with Augmented Types
2015-11-05 15:52:56 -08:00
Adrien Loison
f8aab6eefd
Merge pull request #138 from box/increase_entropy_uniqid
...
Increase entropy of uniqid
2015-11-05 10:44:47 -08:00
Adrien Loison
6c97141679
Merge pull request #133 from philipbrown/patch-1
...
Update README.md
2015-10-27 11:44:01 -07:00
Adrien Loison
2a9400dfca
Merge pull request #131 from box/better_date_support_xlsx
...
Better date support
2015-10-23 16:26:00 -07:00
Adrien Loison
46c246e6a4
Merge pull request #130 from box/highlight_xlsx_over_csv
...
Highlight XLSX over CSV in documentation
2015-10-23 11:00:04 -07:00
Adrien Loison
8fd606ae4f
Highlight XLSX over CSV in documentation
2015-10-23 10:52:12 -07:00
Adrien Loison
6767386daf
Merge pull request #128 from box/increase_max_read_bytes_for_csv
...
Increase max read bytes per line for CSV
2015-10-22 13:39:18 -07:00
Adrien Loison
d1c4d563c1
Merge pull request #126 from box/fix_xmlreader_open_issue_windows
...
Fix "Cannot open file" issue with XMLReader::open on Windows
2015-10-15 10:41:12 -07:00
Adrien Loison
45980195cd
Merge pull request #121 from box/add_test_for_empty_csv
...
Fix infinite loop for CSV with all lines empty
2015-10-05 21:15:11 +02:00
Adrien Loison
16d0290a17
Merge pull request #115 from box/add_api_phpdoc
...
Added @api tag for documentation
2015-09-04 12:52:32 -07:00
Adrien Loison
118810de22
Merge pull request #114 from box/remove_duplicate_method
...
Remove duplicated method
2015-09-04 11:42:52 -07:00
Adrien Loison
6124528161
Merge pull request #113 from box/all_ods_cell_types
...
Support all ODS cell types
2015-09-02 14:30:19 -07:00
Adrien Loison
aa7978146f
Merge pull request #112 from box/cell_formatters
...
Moved cell value formatting logic into formatters
2015-09-02 00:21:25 -07:00
Adrien Loison
03ae367fb3
Update composer.json
2015-09-02 00:11:36 -07:00
Adrien Loison
ac48dce334
Merge pull request #110 from box/ods_documentation
...
ODS documentation
2015-09-01 23:23:10 -07:00
Adrien Loison
1d38bb00c5
Merge pull request #108 from box/remove_xml_indentation
...
Remove XML indentation
2015-09-01 12:52:34 -07:00
Adrien Loison
79d947a6b3
Merge pull request #107 from box/remove_is_inside_row
...
Remove unused isInsideRowTag
2015-09-01 11:30:48 -07:00
Adrien Loison
d2ba6d884c
Merge pull request #106 from box/ods_reader
...
ODS Reader
2015-09-01 10:57:59 -07:00
Adrien Loison
3f0016f753
Merge pull request #103 from box/use_number_columns_repeated
...
Use number-columns-repeated in ODS writer
2015-08-31 12:55:37 -07:00
Adrien Loison
0f8e7a8f58
Merge pull request #102 from box/improve_ods_writer
...
Improve ODS Writer
2015-08-31 10:02:06 -07:00
Adrien Loison
ef171910b9
Merge pull request #99 from box/ods_writer
...
ODS writer
2015-08-28 20:28:08 -07:00
Adrien Loison
108a92e259
Merge pull request #97 from box/add_bool_type_xlsx_writer
...
Add boolean type when writing XLSX cell
2015-08-25 23:53:46 -07:00
Adrien Loison
a8f1fba854
Merge pull request #96 from box/throw_if_xlsx_setters_called_after_open
...
Throw if XLSX Writer configured after being opened
2015-08-24 10:55:59 -07:00
Adrien Loison
b4ace972e7
Update README.md
2015-08-22 19:39:43 -07:00
Adrien Loison
c428daff5a
Update README.md
2015-08-22 18:14:33 -07:00
Adrien Loison
5908443583
Update README.md
2015-08-22 18:13:36 -07:00
Adrien Loison
050672755d
Update README.md
2015-08-22 12:37:24 -07:00