madflow
588ab030d7
(chore) add PHP 7.2
2017-11-20 21:24:25 +01:00
Adrien Loison
f5168114d0
Merge Reader and Writer entities
...
Merged Cell/Row/Style entities
2017-11-19 02:54:17 +01:00
Adrien Loison
4d1d1c1e87
various improvements
2017-11-19 02:41:07 +01:00
Adrien Loison
102e17159c
Make ODS reader return Row object
2017-11-19 01:36:18 +01:00
Adrien Loison
68a96367a8
Remove StyleMerger from RowManager
2017-11-18 21:19:31 +01:00
Adrien Loison
78b6639480
Make XLSX reader return Row objects
2017-11-18 20:53:22 +01:00
Adrien Loison
a665b974fa
Make CSV reader return Row objects
2017-11-18 19:08:27 +01:00
Adrien Loison
139f7fdfb3
Remove StyleMerger from Cell entity
2017-11-18 17:37:52 +01:00
Adrien Loison
c826d15472
Fix charachters escaping with CSV reader/writer
...
PHP's built-in functions fputcsv and fgetcsv are not RFC-4180 compliant and include an escape character that's not defined in the spec.
This results in escaping characters that should not be escaped.
This commit disables this escaping mechanism.
2017-11-11 16:21:05 +01:00
Adrien Loison
e2b519d6f9
Fetch XML file paths from Workbook Relationships
2017-11-11 15:25:12 +01:00
Adrien Loison
0c8a53c821
Fix isEmptyRow() check
2017-11-11 12:35:03 +01:00
Adrien Loison
5a470188a9
Merge remote-tracking branch 'origin/master' into develop_3.0
2017-11-11 12:20:28 +01:00
Adrien Loison
1c69dee9c9
Sheet visibility - ODS writer and reader
2017-11-11 11:11:47 +01:00
Adrien Loison
b9206fcb4b
Sheet visibility - XLSX writer and reader
2017-11-11 11:11:47 +01:00
Adrien Loison
ddfa40e8b3
StyleMerger and RowManager changes
...
Move DI of StyleMerger to get rid of business logic in the entities Cell and Row
Simplify RowManager
2017-11-10 22:45:57 +01:00
Adrien Loison
111f82d35f
Add tests for cell styling
2017-11-10 21:35:59 +01:00
madflow
8dd6487ea3
add upgrade documentation #492
2017-11-10 11:21:57 +01:00
madflow
7367b89384
always write rows even with no cells #492
2017-11-10 11:21:57 +01:00
Adrien Loison
8aec9ea992
Apply default row style in WorkbookManager
...
Instead of doing it in the Writer
2017-11-05 14:13:22 +01:00
Adrien Loison
3d0f108b1d
Consolidate external EntityFactory
...
All entities will now be created through a single factory (including the Writers).
Also, added a EntityFactory::createRowFromArray() to make it easier to create rows
2017-11-05 13:18:29 +01:00
Adrien Loison
2d2151ac8d
Split Writer EntityFactory into interal and external ones
2017-11-05 13:04:03 +01:00
Adrien Loison
ca5962271e
Default row style should only apply to existing cells
2017-11-05 12:17:45 +01:00
Adrien Loison
727a90fd06
Remove @api annotation
2017-11-05 02:23:26 +01:00
Adrien Loison
3851e05f83
Remove @expectedException annotation
2017-11-05 02:21:09 +01:00
Adrien Loison
7274226b75
Row objects and Cell styling
...
This commit introduces Row and Cell entities, that will replace the arrays passed in previously.
It also adds support for Cell styling (instead of Row styling only).
2017-11-05 02:12:28 +01:00
Adrien Loison
fec27e9056
Update .php_cs.dist
...
Remove "void_return" rule
2017-11-04 16:43:36 +01:00
Adrien Loison
c74c0d9127
Add support for 1904 dates
...
This commit adds support for dates using the 1904 calendar (starting 1904-01-01 00:00:00).
It also fixes some issues with the dates in 1900 calendar (which now correctly start at 1899-12-30 00:00:00).
Finally, it is now possible to have negative timestamps, representing dates before the base date (and up to 0000-01-01 00:00:00), as per the SpreadsheetML specs. Note that some versions of Excel don't support negative dates...
2017-11-04 16:33:46 +01:00
Adrien Loison
e1ae3c8a81
Update php-cs config: increment_style
2017-11-04 13:32:22 +01:00
madflow
0ab053dc6e
(chore) remove hhvm from the test grid
2017-10-13 18:50:10 +02:00
Adrien Loison
28c1bea28c
Code style should not follow Yoda style
2017-10-04 00:53:05 +02:00
Lumír Toman
3681a3421a
Change Worksheet function visibility from private to protected in order to class extending. We have created small package on top of the Spout for support cell number format and per cell styles.
v2.7.3
2017-09-25 21:44:35 +02:00
Chris Muthig
3bbff7ea7d
Fix WriterInterface docblock typo
2017-09-06 10:54:21 +02:00
Adrien Loison
b968513cb9
Fix code style
2017-09-06 00:33:43 +02:00
Adrien Loison
740fcfb8c1
Fix code before applying PHP CS Fixer
2017-09-06 00:33:43 +02:00
Adrien Loison
554ebf987b
Setup PHP CS fixer
...
- Add PHP CS Fixer as a dev dependencies.
- Add PHP CS Fixer cache file to gitignore/gitattributes
- Add custom code style config
- Update TravisCI config to check code style
2017-09-06 00:33:43 +02:00
Adrien Loison
668c10a30d
Introduce Managers for readers
...
Some helper classes were more managers than helpers...
2017-08-27 03:56:17 +02:00
Adrien Loison
61f2addefa
Favor object creation in factories ( #459 )
...
Instead of passing factories in the constructors and let objects call the factory method, create all dependencies directly in the factories.
2017-08-27 02:40:39 +02:00
Adrien Loison
4ec3a21170
Random DI improvements ( #458 )
...
* Add random DI improvements
Fixing things that were previously missed
* Split InternalFactory into Manager and Helper factories
2017-08-27 01:44:20 +02:00
Adrien Loison
b7e46740ce
Refactor readers for better di ( #457 )
...
* Refactor readers to get a proper DI
Similar to what was done with writers, readers also needed to be updated to match the new way of doing things.
This commits promotes a better DI (factories, injection through constructors).
* Escapers should not be singletons
Instead, they should be proper object that can be injected where needed.
2017-08-27 00:01:17 +02:00
Adrien Loison
fd6dd46b25
Update gitignore ( #453 )
2017-07-27 23:40:26 +02:00
Adrien Loison
6d44cd26cc
Fix prefixed shared strings XML file ( #450 )
...
A prefixed sharedStrings.xml file was not properly read, as we were comparing the un-prefixed name with the possible prefixed name.
Also, this commit contains a fix for sheets with rows not starting at column A.
2017-07-25 14:16:22 +02:00
Adrien Loison
ee5dee61c7
Fix HHVM jobs on Travis ( #451 )
2017-07-25 14:02:17 +02:00
madflow
4d6437fa77
merge master, resolve conflicts ( #447 )
2017-07-13 09:52:15 +02:00
Adrien Loison
40b4a57e6b
Update README.md ( #442 )
2017-06-19 20:37:30 +02:00
madflow
5d4166196a
HHVM is no longer supported on Ubuntu Precise ( #439 )
2017-06-02 08:46:48 +02:00
Adrien Loison
3bb4fd3d48
Move Sheet to Common/Entity ( #438 )
...
... and introduce a SheetManager
2017-05-30 16:49:07 +02:00
Adrien Loison
30366e6a5d
Inject ZipHelper through constructor ( #437 )
2017-05-30 15:19:05 +02:00
Adrien Loison
762dd1573a
Inject GlobalFunctionsHelper through constructor for Writers ( #436 )
2017-05-30 14:37:38 +02:00
Adrien Loison
7ec0f565fd
Rename SharedStringsHelper to SharedStringsManager ( #435 )
2017-05-30 14:11:18 +02:00
Adrien Loison
cc9a0b526b
Refactory Writer Styles to match new code organization ( #433 )
...
Decomposed old StyleHelper into StyleManager, StyleRegistry and StyleMerger.
2017-05-30 13:05:18 +02:00