Releases · brick/std
0.5.0
💥 Breaking changes
- Minimum PHP version is now 8.2
- All classes are now
final
0.4.0
- Explicit support for PHP 8
- Minimum PHP version is now 7.3
No other changes.
0.3.1
⚡️ Improvements
ObjectStoragenow has Psalm template annotations for static analysisObjectStorageimplementation is now based onspl_object_id()(public API unchanged)
0.3.0
Minimum PHP version is now 7.2. No breaking changes.
0.2.0
Breaking changes in CsvFileIterator:
- now always skips empty lines; only the header line is not allowed to be empty when
$headerRowistrue - now throws an exception when
$headerRowistrue, and either or these statements is true:- the file is empty
- the header row is an empty line
- column names are not unique
- column count of a non-empty line does not match header row's column count, unless either
allowLessColumns()and/orallowMoreColumns()are configured, see below.
New methods in CsvFileIterator:
allowLessColumns()changes the behaviour of the iterator to not throw an exception if a row has less columns than the header row, and instead replace any missing column value withnull, which was the default behaviour before this updateallowMoreColumns()changes the behaviour of the iterator to not throw an exception if a row has more columns than the header row, and instead ignore subsequent columns, which was the default behaviour before this update
This updates aims to harden the iterator by default, while allowing a more lenient parsing if a CSV file is known to be broken in terms of column count.
0.1.3
New features:
FileStream::close()- closes the streamFileStream::lock()&unlock()- advisory lockingBufferedWriter- buffers writes for optimal performance
0.1.2
New feature: FileStream allows to work on a stream using an OO API.
0.1.1
New class: Curl. A simple cURL OO interface.