box/spout
Fast, low-memory PHP library for reading and writing spreadsheet files (CSV, XLSX, ODS). Designed to handle very large files while using under ~3MB RAM. Requires PHP 7.2+, zip and xmlreader extensions. Archived/no longer maintained.
<text:span>This version fixes the reading of 1904 dates option.
Spout v3 is finally out! 🎉🎉🎉🎉🎉🎉
You can check out what changed in the Upgrade guide.
Improvements:
Bug fixes:
Improvements:
Bug fixes:
close() when a writer is already closed no longer causes an errorMajor Enhancements:
Minor Enhancements:
Refactoring:
New features included in this new version:
Fixes:
shouldFormatDate optionThis new version contains several fixes/improvements:
Added support for variable EOL in CSV files
Multiple optimizations:
The created files' mime type is now correctly detected. Support for dates beyond 2037.
This release includes a few improvements:
This release contains 2 fixes:
Spout now supports a new document format: ODS! Through the same interface, it is now possible to read CSV, XLSX and ODS files.
Other improvements:
Fixed bug preventing a XLSX file to be read in iOS and Numbers. Added detection of invalid sheet names (which resulted in an error message when the file was opened in Excel) Added font color support
Spout now supports styling! It also forces Excel to display multi-line strings correctly, wrapping the text in the cell and breaking it as expected.
Prevented infinite loop when trying to read a CSV file ending with an empty line
This version introduces a new way to iterate over the files, moving away from the hasNext() / getNext() method to use PHP iterators and the standard foreach loop. It also unifies the way CSV and XLSX files are read.
This change required a major version bump, as it is not backwards compatible.
Version 2.0.0 also brings a few nice additions:
Introduced new caching strategy when extracting shared strings for reading. This should really speed up Spout for small files!
Fixed XLSX writer on Windows Improved support for cell value types Added code coverage integration through coveralls.io
Added proper support for all cell types Fixed issue with cells that don't have values Removed version from composer.json
Added support for files without a sharedStrings.xml file Added support for files containing formulas Updated README
Fixed issue with ZipArchive and directory separators on Windows
Improved code coverage Unified interface between Reader and Writer
Improvements around sheets name:
How can I help you explore Laravel packages today?