8 Commits

Author SHA1 Message Date
kjkooistra-youwe
876573579e
Merge b54e21779913f3b1873d72b08097737b3bd2ec9b into 84596668410bea89d21aa9867b91e1550e359329 2022-05-26 15:55:26 +02:00
Adrien Loison
9bdb027d31 Update documentation with number format 2021-05-14 23:18:09 +02:00
K J Kooistra
b54e217799 feat: add sheet view support to XLSX writer
This makes it possible to freeze rows and columns, in addition to providing
other sheet view settings like zoom options.
2020-05-15 14:23:41 +02:00
Adrien Loison
9f4c094fa0 Cell alignment
This PR adds support for cell alignment for XLSX and ODS files.
You can now align the content of the cells this way:
```
use Box\Spout\Common\Entity\Style\CellAlignment;
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;

$style = (new StyleBuilder())
    ->setCellAlignment(CellAlignment::RIGHT)
    ->build();
...
```

Possible cell alignments are: LEFT, RIGHT, CENTER and JUSTIFY.
2019-10-27 18:58:56 +01: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
4260c46b11 Update documentation for 3.0 2019-05-17 13:25:49 +02:00
madflow
8f7f106555 doc update with new classes and signatures 2018-10-12 20:16:30 +02:00
madflow
cd0831ea8e #463, move gh-pages to docs folder 2017-11-26 20:02:20 +01:00