Skip to content

Releases: thephpleague/csv

version 9.27.1

25 Oct 08:38

Choose a tag to compare

Added

  • None

Deprecated

  • None

Fixed

  • AbstractCsv::download improved implementation see #569

Remove

  • None

version 9.27.0

16 Oct 09:24

Choose a tag to compare

Added

  • AbstractCsv::from and AbstractCsv::fromString to simplify instantiating Reader and Writer instance.
  • Stream::from and Stream::fromString to simplify internal instantiation of Stream instances.

Deprecated

  • AbstractCsv::createFromString use AbstractCsv::fromString instead
  • AbstractCsv::createFromStream use AbstractCsv::from instead
  • AbstractCsv::createFromFileObject use AbstractCsv::from instead
  • Stream::createFromResource use Stream::from instead
  • Stream::createFromString use Stream::fromString instead

Fixed

  • `None

Remove

  • None

version 9.26.0

01 Oct 11:28

Choose a tag to compare

Added

  • JsonFormat::NdJsonHeader and JsonFormat::NdJsonHeaderLess
  • JsonConverter conversion methods accept an optional $header parameter to handle the new JSON formats.
  • Writer::insertAll and converter classes convert methods now accept TabularData and TabularDataProvider implementing classes

Deprecated

  • None

Fixed

  • Adding an internal Warning class to fix warnings triggering in the codebase.
  • Fix chunkSize usage when NDJson is generated by the JsonConverter class.
  • NdJson/Jsonlines content-type is fixed to application/x-ndjson.

Remove

  • None

version 9.25.0

11 Sep 08:31

Choose a tag to compare

Added

  • JsonFormat Enum to allow exporting to JsonLines with the JsonConverter object.
  • TabularDataProvider interface 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.5 in github actions
  • Ensure DOMDocument::createTextNode() receives a string #567 by serpentblade

Remove

  • None

version 9.24.1

25 Jun 15:06

Choose a tag to compare

Added

  • None

Deprecated

  • None

Fixed

  • Fix possible memory leaks with the Writer class #563 - thanks to pope-12

Remove

  • None

version 9.24.0

24 Jun 19:56

Choose a tag to compare

Added

  • TabularData::last and TabularData::lastAsObject

Deprecated

  • None

Fixed

  • Improved implementation for AbstractCsv::download method

Remove

  • None

version 9.23.0

28 Mar 06:53

Choose a tag to compare

Added

  • TypeCastingInfo to improve error message when type casting fails during denormalization #561

Deprecated

  • fetchColumnByOffset and fetchColumnByName use fetchColumn instead.

Fixed

  • Test suite around header testing using Xdebug functions #559

Remove

  • None

version 9.22.0

28 Feb 10:03

Choose a tag to compare

Added

  • Writer::necessaryEnclosure
  • TabularDataReader::selectAllExcept
  • Statement::selectAllExcept
  • ResultSet::from and ResultSet::tryFrom
  • RdbmsResult class to ease importing RDBMS result into the package classes
  • TabularData interface
  • Buffer class
  • XMLConverter::supportsHeader
  • XMLConverter::when
  • HTMLConverter::when
  • JsonConverter::when
  • CharsetConverter::appendOnReadTo, CharsetConverter::appendOnWriteTo, CharsetConverter::prependOnReadTo, CharsetConverter::prependOnWriteTo

Deprecated

  • Writer::relaxEnclosure use Writer::necessaryEnclosure
  • ResultSet::createFromTabularDataReader use ResultSet::from
  • ResultSet::createFromRecords use ResultSet::from
  • ResultSet::__construct is marked as being internal and deprecated before being made private use ResultSet::from
  • XMLConverter::convert use XMLConverter::import instead
  • XMLConverter::create use XMLConverter::__construct instead
  • HTMLConverter::create use HTMLConverter::__construct instead
  • Statement::create use Statement::__construct instead
  • FragmentFinder::create use FragmentFinder::__construct instead
  • CharsetConverter::appendTo, CharsetConverter::prependTo use the more strict methods added on the instance

Fixed

  • Comparison::CONTAINS must check the value is a string before calling str_compare #548 by cage-is
  • Fix testing to improve Debian integration #549 by David Prévot and tenzap
  • Bom::tryFromSequence and Bom::fromSequence supports the Reader and Writer classes.
  • XMLConverter::$formatter should not be public.
  • XMLConverter internal rewritten to take advantage of PHP8.4 new dom classes
  • HTMLConverter internal rewritten to take advantage of PHP8.4 new dom classes
  • XMLConverter::fieldElement now has a nullable field element to allow using headers names as cell names.

Removed

  • None

version 9.21.0

08 Jan 19:29

Choose a tag to compare

Added

  • TabularDataReader::map method.
  • StreamFilter class
  • CallbackStreamFilter class
  • AbstractCsv::appendStreamFilterOnRead
  • AbstractCsv::appendStreamFilterOnWrite
  • AbstractCsv::prependStreamFilterOnRead
  • AbstractCsv::prependStreamFilterOnWrite
  • Stream::getMode returns the underlying stream mode; internal codebase.

Deprecated

  • AbstractCsv::addStreamFilter use AbstractCsv::appendStreamFilterOnRead or AbstractCsv::appendStreamFilterOnWrite instead.

Fixed

  • Improve CharsetConverter and SwapDelimiter internal code.
  • Fix supportStreamFilterOnReadand supportStreamFilterOnWrite to expose the document real stream filter capabilities.

Removed

  • None

version 9.20.1

18 Dec 10:14

Choose a tag to compare

Added

  • None

Deprecated

  • None

Fixed

  • #554 Fix stream filte removal by crocodele
  • Fix Statement callback and closure signature

Removed

  • None