Releases: thephpleague/csv
Releases · thephpleague/csv
version 9.27.1
version 9.27.0
Added
AbstractCsv::fromandAbstractCsv::fromStringto simplify instantiatingReaderandWriterinstance.Stream::fromandStream::fromStringto simplify internal instantiation ofStreaminstances.
Deprecated
AbstractCsv::createFromStringuseAbstractCsv::fromStringinsteadAbstractCsv::createFromStreamuseAbstractCsv::frominsteadAbstractCsv::createFromFileObjectuseAbstractCsv::frominsteadStream::createFromResourceuseStream::frominsteadStream::createFromStringuseStream::fromStringinstead
Fixed
- `None
Remove
- None
version 9.26.0
Added
JsonFormat::NdJsonHeaderandJsonFormat::NdJsonHeaderLessJsonConverterconversion methods accept an optional$headerparameter to handle the new JSON formats.Writer::insertAlland converter classesconvertmethods now acceptTabularDataandTabularDataProviderimplementing classes
Deprecated
- None
Fixed
- Adding an internal
Warningclass to fix warnings triggering in the codebase. - Fix
chunkSizeusage when NDJson is generated by theJsonConverterclass. - NdJson/Jsonlines content-type is fixed to
application/x-ndjson.
Remove
- None
version 9.25.0
Added
JsonFormatEnum to allow exporting to JsonLines with theJsonConverterobject.TabularDataProviderinterface to allow connecting to the package features without implementing all the methods.
Deprecated
- None
Fixed
- Fix test around equality, PHPUnit and closures #568
- Added support for
PHP8.5in github actions - Ensure
DOMDocument::createTextNode()receives a string #567 by serpentblade
Remove
- None
version 9.24.1
version 9.24.0
Added
TabularData::lastandTabularData::lastAsObject
Deprecated
- None
Fixed
- Improved implementation for
AbstractCsv::downloadmethod
Remove
- None
version 9.23.0
version 9.22.0
Added
Writer::necessaryEnclosureTabularDataReader::selectAllExceptStatement::selectAllExceptResultSet::fromandResultSet::tryFromRdbmsResultclass to ease importing RDBMS result into the package classesTabularDatainterfaceBufferclassXMLConverter::supportsHeaderXMLConverter::whenHTMLConverter::whenJsonConverter::whenCharsetConverter::appendOnReadTo,CharsetConverter::appendOnWriteTo,CharsetConverter::prependOnReadTo,CharsetConverter::prependOnWriteTo
Deprecated
Writer::relaxEnclosureuseWriter::necessaryEnclosureResultSet::createFromTabularDataReaderuseResultSet::fromResultSet::createFromRecordsuseResultSet::fromResultSet::__constructis marked as beinginternaland deprecated before being made private useResultSet::fromXMLConverter::convertuseXMLConverter::importinsteadXMLConverter::createuseXMLConverter::__constructinsteadHTMLConverter::createuseHTMLConverter::__constructinsteadStatement::createuseStatement::__constructinsteadFragmentFinder::createuseFragmentFinder::__constructinsteadCharsetConverter::appendTo,CharsetConverter::prependTouse the more strict methods added on the instance
Fixed
Comparison::CONTAINSmust check the value is a string before callingstr_compare#548 by cage-is- Fix testing to improve Debian integration #549 by David Prévot and tenzap
Bom::tryFromSequenceandBom::fromSequencesupports theReaderandWriterclasses.XMLConverter::$formattershould not be public.XMLConverterinternal rewritten to take advantage of PHP8.4 new dom classesHTMLConverterinternal rewritten to take advantage of PHP8.4 new dom classesXMLConverter::fieldElementnow has anullablefield element to allow using headers names as cell names.
Removed
- None
version 9.21.0
Added
TabularDataReader::mapmethod.StreamFilterclassCallbackStreamFilterclassAbstractCsv::appendStreamFilterOnReadAbstractCsv::appendStreamFilterOnWriteAbstractCsv::prependStreamFilterOnReadAbstractCsv::prependStreamFilterOnWriteStream::getModereturns the underlying stream mode; internal codebase.
Deprecated
AbstractCsv::addStreamFilteruseAbstractCsv::appendStreamFilterOnReadorAbstractCsv::appendStreamFilterOnWriteinstead.
Fixed
- Improve
CharsetConverterandSwapDelimiterinternal code. - Fix
supportStreamFilterOnReadandsupportStreamFilterOnWriteto expose the document real stream filter capabilities.
Removed
- None