Releases: thephpleague/csv
version 8.1.1
Fixed
getInputBOMmethod name is now consistent everywhere in the API PR #171- preserve fileObject CSV controls commit #8a20c56
- Change
outputmethod header content-type value totext/csvPR #175
version 8.1.0
Added
- The package now includes its own autoloader.
Ouput::getInputEncodingOuput::setInputEncoding
Deprecated
Ouput::getEncodingFromreplaced byOuput::getInputEncodingOuput::setEncodingFromreplaced byOuput::setInputEncoding
Fixed
- Stream Filters are now url encoded before usage issue #72
- All internal parameters are now using the snake case format
version 8.0.0
Added
Reader::fetchPairsReader::fetchPairsWithoutDuplicates
Deprecated
- None
Fixed
Reader::fetchColumnandReader::fetchAssocnow returnIteratorReader::fetchAssoccallable argument expects an indexed row using the submitted keys as its first argumentReader::fetchColumncallable argument expects the selected column value as its first argument- Default value on
setOutputBOMis removed AbstractCsv::getOutputBOMalways return a stringAbstractCsv::getInputBOMalways return a string
Removed
Controls::setFlagsControls::getFlagsControls::detectDelimiterListQueryFilter::removeFilterQueryFilter::removeSortByQueryFilter::hasFilterQueryFilter::hasSortByQueryFilter::clearFilterQueryFilter::clearSortByReader::query- The
$newlineargument fromAbstractCsv::createFromString
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.2.0
Added
Reader::fetchreplacesLeague\Csv\Reader::queryfor naming consistencyControls::fetchDelimitersOccurrenceto replaceControls::detectDelimiterListthe latter gives erronous results
Deprecated
Controls::detectDelimiterListReader::query- The
$newlineargument fromAbstractCsv::createFromStringis deprecated
Fixed
- Streamming feature no longer trim filter name argument issue #122
- Fix default
SplFileObjectflags usage PR #130 AbstractCsv::createFromStringno longer trim the submitted string issue #132
Removed
- Nothing
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.1.2
Fixed
- Enclosures should be removed when a BOM sequence is stripped bug fix #102
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.1.1
Fixed
SplFileObjectflags were not always applied using query filter bug fix #99
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.1.0
Added
stripBOMquery filtering method to ease removing the BOM sequence when querying the CSV document.- All query filters are now accessible in the
Writerclass for conversion methods.
Fixed
- code has been updated to take into account bug fix #68479
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.0.1
Fixed
setFlags:SplFileObject::DROP_NEW_LINEcan be remove usingsetFlagsmethod.
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 7.0.0
Added
- A new flexible mechanism to format and validate a row before its insertion by adding
Fixed
jsonSerialize,toXMLandtoHTMLoutput can be modified usingReaderquery options methods. #66detectDelimiterListindex keys now represents the occurrence of the found delimiter.- the named constructor
createFromStringnow accepts the$newlinesequence as a second argument. - Default
SplFileObjectflags value is nowSplFileObject::READ_CSV|SplFileObject::DROP_NEW_LINE - All CSV properties are now copied when using
newReaderandnewWritermethods
Removed
ini_set("auto_detect_line_endings", true);setting is no longer set in the class constructor. Mac OS X users must explicitly set this ini options in their script.WriterandReaderdefault constructor are removed from public API in favor of the named constructors.- All
Writermethods and constant related to CSV data validation and formatting before insertion.
Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes
version 6.3.0
Added AbstractCSV::getInputBOM , AbstractCSV::getOutputBOM, AbstractCSV::setOutputBOM methods to control the BOM character added at the top of each CSV.
Please refers to the documentation or the library CHANGELOG for more details.