Skip to content

Commit

Permalink
Add openspout/openspout bridge as a replacement of box/spout (#86)
Browse files Browse the repository at this point in the history
* Add openspout/openspout bridge as a replacement of box/spout

* Fix phpstan

* Fix checkstyle

* Re-add ability to set the sheet name during flat file write

* Update docs

* Fixed tests
  • Loading branch information
yann-eugone authored Jun 27, 2023
1 parent ea92362 commit d526418
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ Looking for something in particular ?

Looking for something more specific ?

- [Read/Write from/to CSV/ODS/XLSX](https://github.com/yokai-php/batch-box-spout)
- [Store job executions in relational database](https://github.com/yokai-php/batch-doctrine-dbal)
- [Read from Doctrine ORM entities](https://github.com/yokai-php/batch-doctrine-orm)
- [Write to Doctrine ORM/ODM... objects](https://github.com/yokai-php/batch-doctrine-persistence)
- [Copy/Move files in a job / Trigger job when file found](https://github.com/yokai-php/batch-league-flysystem)
- [Read/Write from/to CSV/ODS/XLSX](https://github.com/yokai-php/batch-box-spout)
- [Trigger async jobs using CLI command](https://github.com/yokai-php/batch-symfony-console):
- [Integration with Symfony framework](https://github.com/yokai-php/batch-symfony-framework)
- [Trigger async jobs using using queue](https://github.com/yokai-php/batch-symfony-messenger):
Expand Down
4 changes: 3 additions & 1 deletion docs/domain/item-job/item-reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ It can be any class implementing [ItemReaderInterface](../../../src/Job/Item/Ite
read from an iterable you provide during construction.

**Item readers from bridges:**
- [FlatFileReader (`box/spout`)](https://github.com/yokai-php/batch-box-spout/blob/0.x/src/Reader/FlatFileReader.php):
- `DEPRECATED` [FlatFileReader (`box/spout`)](https://github.com/yokai-php/batch-box-spout/blob/0.x/src/Reader/FlatFileReader.php):
read from any CSV/ODS/XLSX file.
- [FlatFileReader (`openspout/openspout`)](https://github.com/yokai-php/batch-openspout/blob/0.x/src/Reader/FlatFileReader.php):
read from any CSV/ODS/XLSX file.
- [DoctrineDBALQueryOffsetReader (`doctrine/dbal`)](https://github.com/yokai-php/batch-doctrine-dbal/blob/0.x/src/DoctrineDBALQueryOffsetReader.php):
read execute an SQL query and iterate over results, using a limit + offset pagination strategy.
Expand Down
4 changes: 3 additions & 1 deletion docs/domain/item-job/item-writer.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ It can be any class implementing [ItemWriterInterface](../../../src/Job/Item/Ite
write items by inserting/updating in a table via a Doctrine `Connection`.
- [ObjectWriter (`doctrine/persistence`)](https://github.com/yokai-php/batch-doctrine-persistence/blob/0.x/src/ObjectWriter.php):
write items to any Doctrine `ObjectManager`.
- [FlatFileWriter (`box/spout`)](https://github.com/yokai-php/batch-box-spout/blob/0.x/src/Writer/FlatFileWriter.php):
- `DEPRECATED` [FlatFileWriter (`box/spout`)](https://github.com/yokai-php/batch-box-spout/blob/0.x/src/Writer/FlatFileWriter.php):
write items to any CSV/ODS/XLSX file.
- [FlatFileWriter (`openspout/openspout`)](https://github.com/yokai-php/batch-openspout/blob/0.x/src/Writer/FlatFileWriter.php):
write items to any CSV/ODS/XLSX file.

**Item writers for testing purpose:**
Expand Down

0 comments on commit d526418

Please sign in to comment.