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
v2.4.4
2016-04-12 11:03:15 -07:00
Adrien Loison
8bb42ebc23
Check file handle is valid before manipulating it
...
This fixes issues when something went wrong on reader/writer init and the developer wants to close the reader/writer.
The file handle may not be defined so we need to add a check for it, before actually using it.
2016-04-12 10:36:59 -07:00
Adrien Loison
71a6f6a937
Merge pull request #196 from madflow/trim-inline-strings
...
Fix #195
2016-04-09 13:20:48 -07:00
madflow
616925148e
Renamed xlsx file, #195
2016-04-07 08:58:54 +02:00
madflow
6f0f7c9690
Fix #195
2016-04-06 22:00:47 +02:00
Adrien Loison
b69e28050b
Merge pull request #187 from skeleton/issue-183
...
Fix line breaks on CSV reader
v2.4.3
2016-03-23 17:02:42 -07:00
skeleton
d6e8fe4b54
Fix line breaks on CSV reader
2016-03-23 23:26:49 +01: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
c31373fb1a
Writers did not close written file pointer
2016-03-23 10:21:27 -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
madflow
30837f869d
Coding style and typos
2016-03-20 08:46:30 +01:00
madflow
e60054f3c4
More explicit rule for ignoring empty placeholder cells in Excel ODS #184
2016-03-19 11:34:32 +01:00
madflow
3ee7099c95
Fix zeros treated as missing values #184
2016-03-19 11:34:32 +01:00
madflow
2b1160bb33
Tests for #184
2016-03-19 11:34:31 +01: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
d2ac54c578
Custom stream wrapper support
...
Added support for custom stream wrappers, such as "fly" or "s3".
Support is determined per reader.
2016-03-18 17:09:13 -07:00
Adrien Loison
0c90d102ef
Merge pull request #179 from lichunqiang/gitattributes
...
Add .gitattributes
2016-02-21 18:11:03 -08:00
lichunqiang
e39dcb3847
Add .gitattributes
2016-02-22 09:48:28 +08:00
Adrien Loison
10d1140a95
Merge pull request #175 from IlyaBakhlin/master
...
Fixing the boolean bug.
2016-02-15 16:43:30 -08:00
Ilya Bakhlin
48debbcbca
Simplifying the fix.
2016-02-15 22:11:04 +01:00
Ilya Bakhlin
f4d6fb87ee
Fixing the boolean bug.
2016-02-15 15:55:46 +01:00
Adrien Loison
771afcb5f1
Merge pull request #173 from sfichera/master
...
Support for variable EOL for CSV
v2.4.2
2016-02-14 00:20:48 -08:00
Sebastian Fichera
86e26632f6
Added test case for custom EOL characters...
2016-02-12 16:30:18 -06:00
Sebastian Fichera
8614f79da3
Minor fixes in order to be ok with naming conventions and code documentation...
2016-02-11 17:51:24 -06:00
Sebastian Fichera
4827e56cac
Added new public function usage to docs...
2016-02-11 17:15:48 -06:00
Sebastian Fichera
03e85ffc21
Added EOL configuration support while reading CSV files...
...
Enhancement for #172 issue…
2016-02-11 17:12:54 -06:00
Adrien Loison
e4cc8b4eaa
Merge pull request #169 from welcoMattic/patch-1
...
Update README.md
2016-01-27 13:26:18 -08:00
Mathieu Santo Stefano--Féron
73341d06a9
Update README.md
...
Fix typo
2016-01-27 18:21:06 +01:00
Adrien Loison
209372462b
Merge pull request #167 from box/fix_int_float_value_formatters
...
Fix CellValueFormatter for numeric values
v2.4.1
2016-01-14 11:29:01 -08:00
Adrien Loison
4a5da2ad74
Fix CellValueFormatter for numeric values
...
The value passed into the format() function is coming from an XML file and has never been coerced.
Therefore, when checking is_int($value), the check always returns false - because it's a string.
Changing the check fixes the issue and Spout now correctly parses large numbers.
2016-01-14 11:11:31 -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
a804be4844
Support XLSX that are defined in random order
...
Some software generate [Content_Types].xml file with sheets definition in random order.
Instead of having the first sheet (id = 1) defined first, it may be defined in 3rd position.
Therefore, to read the file in the correct order, sheets order need to be fixed.
2016-01-08 08:42:29 -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
61b71bf379
Update dev-master branch alias
2015-12-22 12:17:15 +01:00
Adrien Loison
3c3294061a
Merge pull request #161 from garak/patch-1
...
support branch alias
v2.4.0
2015-12-21 12:05:16 +01:00
Massimiliano Arione
1fde6d836a
support branch alias
2015-12-21 10:54:15 +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
Ingmar Runge
4407cffeff
XLSX Date Support / Test + Fix for years beyond 2037
...
This also fixes years < 1902 on 32-bit PHP systems.
2015-12-17 08:52:15 +01: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
2c6cb1ffe5
Fix hasSetFontColor check
2015-12-08 10:31:16 -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
ed0e8f79cc
Improve ZIP interface for better mime detection
...
The ZipHelper interface is now more generic and allow single files to be added.
It supports adding uncompressed files (for PHP7+), which is required to have the mime detection magic work with ODS files.
Also fixed a few issues with the created ODS file (thanks to https://odf-validator.rhcloud.com/ )
2015-12-05 18:06:13 -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
728dd3b399
Proper mime type detection for XLSX files
...
Heuristics to detect proper mime type for XLSX files expect to see
certain files at the beginning of the XLSX archive. The order in which
the XML files are added therefore matters.
Specifically, "[Content_Types].xml" should be added first, followed by the
files located in the "xl" folder (at least 1 file).
2015-12-05 00:20:40 -08:00