Skip to content

Releases: thephpleague/csv

version 7.2.0

02 Nov 07:43
Compare
Choose a tag to compare

Added

  • Reader::fetch replaces League\Csv\Reader::query for naming consistency
  • Controls::fetchDelimitersOccurrence to replace Controls::detectDelimiterList the latter gives erronous results

Deprecated

  • Controls::detectDelimiterList
  • Reader::query
  • The $newline argument from AbstractCsv::createFromString is deprecated

Fixed

  • Streamming feature no longer trim filter name argument issue #122
  • Fix default SplFileObject flags usage PR #130
  • AbstractCsv::createFromString no 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

10 Jun 11:14
Compare
Choose a tag to compare

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

21 May 07:58
Compare
Choose a tag to compare

Fixed

  • SplFileObject flags 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

06 May 12:10
Compare
Choose a tag to compare

Added

  • stripBOM query filtering method to ease removing the BOM sequence when querying the CSV document.
  • All query filters are now accessible in the Writer class for conversion methods.

Fixed

Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes

version 7.0.1

23 Mar 11:59
Compare
Choose a tag to compare

Fixed

  • setFlags: SplFileObject::DROP_NEW_LINE can be remove using setFlags method.

Please refers to the documentation or the library CHANGELOG for more details and a complete list of changes

version 7.0.0

19 Feb 12:17
Compare
Choose a tag to compare

Added

  • A new flexible mechanism to format and validate a row before its insertion by adding

Fixed

  • jsonSerialize, toXML and toHTML output can be modified using Reader query options methods. #66
  • detectDelimiterList index keys now represents the occurrence of the found delimiter.
  • the named constructor createFromString now accepts the $newline sequence as a second argument.
  • Default SplFileObject flags value is now SplFileObject::READ_CSV|SplFileObject::DROP_NEW_LINE
  • All CSV properties are now copied when using newReader and newWriter methods

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.
  • Writer and Reader default constructor are removed from public API in favor of the named constructors.
  • All Writer methods 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

21 Jan 12:11
Compare
Choose a tag to compare

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.

version 6.2.0

12 Dec 11:39
Compare
Choose a tag to compare

Added Writer::setNewline , Writer::getNewline to control the newline sequence characters added at the end of each inserted CSV row.

Please refers to the documentation or the library CHANGELOG for more details

version 6.1.0

08 Dec 07:59
Compare
Choose a tag to compare

Added

  • Reader::fetchAssoc now also accepts an integer as first argument representing a row index.

version 6.0.1

12 Nov 20:06
Compare
Choose a tag to compare
  • bug fix AbstractCsv::detectDelimiterList