Alexander Hofstede
db197de7f9
Add support for custom column widths in ODS exports
2019-12-19 22:35:55 +01:00
Alexander Hofstede
ceda150aa3
Rename default column style
2019-12-19 20:31:46 +01:00
Alexander Hofstede
26ad59033c
Add support for default cell sizes for ODS files
2019-12-17 22:05:01 +01:00
Alexander Hofstede
6db9871722
Extract common functionality to trait for easier reuse, fix default row height for XLSX
2019-12-17 20:31:26 +01:00
Alexander Hofstede
09a624ef8e
Avoid $previousValue if length is < 1
2019-12-16 20:01:48 +01:00
Alexander Hofstede
4b9eb5b031
PSR-2 code style
2019-12-13 12:43:36 +01:00
Alexander Hofstede
80487f1ac1
Add support for setting column width by range
2019-12-13 12:38:00 +01:00
Alexander Hofstede
82170a058b
Add XLSX support for default column width/row height as well as custom column widths through writer or OptionsManager (and test for it)
2019-12-13 00:12:09 +01:00
Ilya Troy
2d297e954b
Update getting-started.md
...
Fix writer usage example
2019-07-30 22:14:20 +02:00
Adrien Loison
2716d7eeed
[PHP 7.4] Updated way to disable the fgetcsv/fputcsv escape character
...
From PHP 7.4, the recommended way to disable the escape character for fgetcsv() and fputcsv() is an empty string, instead of "\0".
Discussed here: https://github.com/php/php-src/pull/3515
2019-07-21 23:15:34 +02:00
Adrien Loison
1bbfd45b82
Support for missing styles XML file in XLSX
...
Some files don't have a "styles.xml" file. Excel supports these files, Spout should do too.
2019-07-20 16:48:51 +02:00
Adrien Loison
6c4086cf97
Fix reading of 1904 dates option
...
Whether the spreadsheet is using 1904 dates or not is controlled by a XML property. Its value can be the string "false" that is not mapped to the boolean "false" but to the boolean "true"... Therefore Spout was previously using the wrong date system when this property was set.
v3.0.1
2019-06-04 09:36:51 +02:00
Adrien Loison
a296f73a98
Fix Github icon in docs
2019-05-24 10:12:35 +02:00
Adrien Loison
0f0bf64802
Merge branch 'master' into develop_3.0
v3.0.0
2019-05-24 09:30:41 +02:00
Adrien Loison
9d33fcdd00
Update FAQ
2019-05-24 09:24:34 +02:00
Adrien Loison
4ff9717b0a
Update FAQ in docs
2019-05-23 09:00:46 +02:00
Adrien Loison
c62177f0e4
Move documentation from gh-pages branch to 'docs' folder
...
To prepare the migration to 3.0, we need to change the location where the documentation is generated from.
Having a gh-pages branch makes it hard to synchronize the code and the docs. Having a "docs" folder in the repo itself simplifies this.
2019-05-22 09:45:45 +02:00
Adrien Loison
3beaa32021
Fix docblock
2019-05-21 19:43:54 +02:00
Adrien Loison
5ce5a488d1
Force UTF-8 encoding in htmlspecialchars
2019-05-21 19:37:09 +02:00
Adrien Loison
69b0fb9eaf
Add methods to SheetInterface
...
The SheetInterface was missing methods common to all Sheets (getIndex, getName, isActive, isVisible).
2019-05-17 21:38:29 +02:00
Adrien Loison
40ee386edd
Add helper functions to create specific readers and writers
...
Removed the `ReaderEntityFactory::createReader(Type)` method and replaced it by 3 methods:
- `ReaderEntityFactory::createCSVReader()`
- `ReaderEntityFactory::createXLSXReader()`
- `ReaderEntityFactory::createODSReader()`
This has the advantage of enabling autocomplete in the IDE, as the return type is no longer the interface but the concrete type. Since readers may expose different options, this is pretty useful.
Similarly, removed the `WriterEntityFactory::createWriter(Type)` method and replaced it by 3 methods:
- `WriterEntityFactory::createCSVWriter()`
- `WriterEntityFactory::createXLSXWriter()`
- `WriterEntityFactory::createODSWriter()`
Since this is a breaking change, I also updated the Upgrade guide.
Finally, the doc is up to date too.
2019-05-17 21:22:03 +02:00
Adrien Loison
6104d41857
Add tests runs on PHP 7.3 in Travis
2019-05-17 13:37:25 +02:00
Adrien Loison
4260c46b11
Update documentation for 3.0
2019-05-17 13:25:49 +02:00
Adrien Loison
4a9d0398ad
Update Reader/WriterEntityFactory
...
Add `WriterEntityFactory::createWriterFromFile`, working like `ReaderEntityFactory::createReaderFromFile` (guessing writer type from file name).
Use static functions when needed.
2019-05-17 13:22:27 +02:00
madflow
e8693834a0
perf tests in development branch
2019-03-24 22:53:28 +01:00
Adrien Loison
171a2fab10
Fix test failure message
2019-02-02 09:55:16 +01:00
madflow
3d577197d2
upgrade guide
2019-01-30 16:01:25 +01:00
Adrien Loison
71cf0fe339
Fix sheet name escaping
...
Sheet names are stored as attributes of an XML entity. We therefore need a different escaping strategy, escaping quotes.
2019-01-26 16:14:15 +01:00
Adrien Loison
ee998f7173
For PHP 7.1 for Composer
...
If local PHP is 7.2, we still want to download dependencies compatible with PHP 7.1
2019-01-04 19:24:28 +01:00
madflow
6c8344c025
PHP version in readme
2019-01-04 19:23:27 +01:00
Yannick ROGER
a420e3fffa
Fix phpunit ( #604 )
...
* Enforce PHP 5.4 on composer update
* Ran composer update
2018-12-03 16:42:00 +01:00
madflow
e99c80b3ad
create a reader by file type #569
2018-10-23 13:33:39 +02:00
madflow
8f7f106555
doc update with new classes and signatures
2018-10-12 20:16:30 +02:00
madflow
738ea30f35
use expectNotToPerformAssertions
2018-10-08 10:09:47 +02:00
madflow
8a1c48b6b0
rename EntityFactory for writers and readers #526
2018-09-03 11:15:09 +02:00
madflow
e1acdc1fc5
(docs) removed Bower, use a CDN, Docker usage, updated Readme
2018-08-09 23:52:14 +02:00
madflow
b105d15f08
some migrations to PHP 7.1
2018-06-12 18:28:04 +02:00
madflow
b05ce01d3c
delete unused ReaderOptions
2018-06-12 18:27:00 +02:00
Adrien Loison
195b0d4bda
Upgrade to 3.0 guide
2018-06-04 08:46:37 +02:00
Adrien Loison
f7c483adbd
Better support for errored cells
2018-06-03 22:31:24 +02:00
Adrien Loison
1b64a06fbe
Move ReaderFactory into Common/Creator
2018-06-03 21:13:38 +02:00
Adrien Loison
d25a4ebd6d
Add docs to .gitattributes
2018-06-03 21:08:21 +02:00
Adrien Loison
e83ac423dc
Force PHP 7.1
2018-06-03 20:43:49 +02:00
Adrien Loison
799ad93d23
Force UTF-8 encoding in htmlspecialchars
2018-05-09 22:56:06 +02:00
madflow
5c0030854f
appveyor
2018-03-28 09:50:56 +02:00
madflow
01ad5af2c5
fix risky tests and assert true for silent tests
2018-03-25 15:35:19 +02:00
madflow
29cf6245a1
added Row::getCellAtIndex method
2018-02-14 21:32:10 +01:00
madflow
21e0e9e6b1
implement Cell:isDate() for unification
2018-01-16 14:22:37 +01:00
madflow
e135b71473
remove unused import
2018-01-16 14:22:10 +01:00
madflow
d84f5168ec
RowManager constructor does not take any arguments
2018-01-16 14:22:10 +01:00