packagist league/csv 3.3.0
version 3.3.0

latest releases: dev-master, 9.15.0, 9.14.0...
10 years ago

New Traits

The Library is restructured and Traits are placed in their own subdirectory

  • \Bakame\Csv\Traits\CsvControls to set/get Csv controls flags
  • \Bakame\Csv\Traits\CsvOutput to output in different forms the CSV

New Interfaces:

  • The \Bakame\Csv\Reader implements the IteratorAggregate Interface

New Methods:

  • \Bakame\Csv\Reader::createFromString this static function returns a new \Bakame\Csv\Reader object from a string
  • The \Bakame\Csv\Reader::getIterator is introduce and will replace \Bakame\Csv\Reader::getFile

Update:

  • The \Bakame\Csv\Reader::query has a new optional parameter $callable format the given iterator rows
  • The \Bakame\Csv\Reader::fetch* $callable parameter is now normalized to accept an array
  • The \Bakame\Csv\Reader::fetchCol now accept a third option $strict which is a boolean. By default $strict is false and the method behaviour remained the same. If $strict is true, the method will filter out the rows that do not contain the specified column index.

Deprecated

  • The \Bakame\Csv\Reader::getFile is deprecated and is to be remove in the next major point release

Removed

  • The \Bakame\Csv\ReaderInterface is removed as it was useless

Don't miss a new csv release

NewReleases is sending notifications on new releases.