version 6.0.0
New API
- Stream Filter API added to enable the use of PHP stream filters on CSV objects.
New Methods
- To simplify CSV objects instantiation new named constructors are added
League\Csv\AbstractCsv::createFromPath
andLeague\Csv\AbstractCsv::createFromFileObject
- New methods allow creating CSV objects from already created CSV objects:
League\Csv\AbstractCsv::newWriter
andLeague\Csv\AbstractCsv::newReader
methods can be call on both classes
Bug Fixes
League\Csv\Reader::each
is now more strict$callable
MUST returns true
Removed Methods
League\Csv\AbstractCsv::detectDelimiter
replaced byLeague\Csv\AbstractCsv::detectDelimiterList
League\Csv\AbstractCsv::set/getEncoding
replaced byLeague\Csv\AbstractCsv::set/getEncodingFrom
League\Csv\Reader::getWriter
replaced byLeague\Csv\AbstractCsv::newWriter
League\Csv\Writer::getReader
replaced byLeague\Csv\AbstractCsv::newReader
League\Csv\Reader::setSortBy
deprecated since version 5.2League\Csv\Reader::setFilter
deprecated since version 5.1
Miscellaneous
- Since
HHVM 3.2+
supports PHPFilterCallbackIterator
, the library now works on HHVM. - Code quality improved
- Adding a changelog to the library
Please refers to the documentation or the library CHANGELOG for more details