470 Commits

Author SHA1 Message Date
Adrien Loison
8ef6bdac62 Better date support
Although Excel has a Date type, older Excel versions use numeric values to store dates.
The value represents the number of days since Jan 1st, 1900.
The only way to tell if the value is a number or a date is to look at the styles.xml and check if the cell has date formatting.
2015-10-23 16:04:38 -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
3395d3abb3 Increase max read bytes per line for CSV
Specify a bigger value than the default one to support long lines.
2015-10-22 10:54:12 -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
v2.3.1
2015-10-15 10:41:12 -07:00
Adrien Loison
01cc8b3da0 Fix "Cannot open file" issue with XMLReader::open on Windows
This occurred when using relative paths. Using realpath() solves this issue.
2015-10-15 09:19:47 -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
a1a1077677 Fix infinite loop for CSV with all lines empty
Only occured with multiline CSV files
2015-10-05 21:10:41 +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
f8c39287ad Added @api tag for documentation 2015-09-04 11:43:01 -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
3720c9ea1c Remove duplicated method 2015-09-04 11:37:44 -07:00
Adrien Loison
6124528161 Merge pull request #113 from box/all_ods_cell_types
Support all ODS cell types
v2.3.0
2015-09-02 14:30:19 -07:00
Adrien Loison
818ec2488c Support all ODS cell types
Including:
- date / time
- currency
- percentage
- void

And improved support for boolean
2015-09-02 14:03:38 -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
d6e707c5fe Moved cell value formatting logic into formatters 2015-09-02 00:12:59 -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
e147c580ca ODS documentation 2015-09-01 23:11:07 -07:00
Adrien Loison
7615acf398 Random fixes 2015-09-01 23:04:57 -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
dd3cc5bf47 Remove XML indentation 2015-09-01 11:24:13 -07:00
Adrien Loison
0a5be41c53 Remove unused isInsideRowTag 2015-09-01 10:59:33 -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
e4154dfdc3 ODS Reader
Spout can now read ODS files.
It's on par with the XLSX reader. The only difference is that the row iterator cannot be rewound.
It supports the different output formats from LibreOffice and Excel, skipping extra rows/cells if needed.
2015-09-01 10:53:49 -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
bc009a3241 Use number-columns-repeated in ODS writer
The number-columns-repeated usage may reduce the size of the outputted XML file by merging repeated values together.
2015-08-31 12:03:28 -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
156fd29a44 Improve ODS Writer
Remove num-columns-repeated and num-rows-repeated as it does not seem to be required (LibreOffice does not add them).
This greatly simplifies the writer and the XML output.
Added some optional attributes to help LibreOffice with cell values caching ("calcext")
2015-08-31 09:55:17 -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
5949cb2442 ODS writer
Added ODS writer
Refactored XLSX writer to abstract some pieces into an abstract multi-sheets writer
Created an abstract style helper
Moved shared components around
2015-08-28 20:19:45 -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
9fb1427944 Add boolean type when writing XLSX cell 2015-08-25 23:36:24 -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
1812b4f996 Throw if XLSX Writer configured after being opened 2015-08-24 10:52:12 -07:00
Adrien Loison
b4ace972e7 Update README.md v2.2.0 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
Adrien Loison
e1928eb68a Merge pull request #93 from box/font_color
Add support for font color
2015-08-21 21:04:32 -07:00
Adrien Loison
9467b5a810 Add support for font color 2015-08-21 20:58:21 -07:00
Adrien Loison
2699ffbcae Merge pull request #92 from box/invalid_sheet_names_contd
Detection of invalid sheet name - continued
2015-08-21 16:51:02 -07:00
Adrien Loison
3559bc8834 Detection of invalid sheet name - continued
Invalid names can also be triggered by:
- character ":"
- single quote at the beginning of the name
- single quote at the end of the name

Introduced a StringHelper, wrapping multibyte strings functions
2015-08-21 16:44:13 -07:00
Adrien Loison
506d682e74 Merge pull request #91 from box/invalid_sheet_name_detection
Detection of invalid sheet name
2015-08-21 15:36:25 -07:00
Adrien Loison
7efab5576d Detection of invalid sheet name
Based on Excel requirements:
 - it should not be blank
 - it should not exceed 31 characters
 - it should not contain these characters: \ / ? * [ or ]
 - it should be unique
2015-08-21 15:21:36 -07:00
Adrien Loison
366f121eb0 Update README.md 2015-08-21 10:58:11 -07:00
Adrien Loison
f8d0ac2682 Merge pull request #89 from box/fix_ios_issue
Fix OfficeImportErrorDomain issue on iOS
2015-08-20 20:32:41 -07:00
Adrien Loison
82377403ff Fix OfficeImportErrorDomain issue on iOS 2015-08-20 20:28:34 -07:00