Releases: ajgarlag/AjglCsvRfc
Releases · ajgarlag/AjglCsvRfc
Require PHP >= 7.3
Changed
- Require PHP >=7.3 or >=8.0
- Upgrade php-cs-fixer dependency and fix-cs
- Migrate code to PHP 7.3 adding scalar param type hints and return types
- Upgrade phpunit dependency and fix tests
- Migrate from travis-ci to github actions
Return value from fputcsv
Thanks to @kumamidori contribution, the fputcsv
function mimic the return values from the native function.
Stream filter feature
The new stream filter feature allows to integrate this component with league/csv
using the Stream Filter API.
Review the README for more info.
Initial release
Drop in replacement for native PHP CSV related functions to read and/or write RFC 4180 compliant CSV files.
Native | Alternative |
---|---|
fgetcsv |
Ajgl\Csv\Rfc\fgetcsv |
fputcsv |
Ajgl\Csv\Rfc\fputcsv |
str_getcsv |
Ajgl\Csv\Rfc\str_getcsv |
SplFileObject::fgetcsv |
Ajgl\Csv\Rfc\Spl\SplFileObject::fgetcsv |
SplFileObject::fputcsv |
Ajgl\Csv\Rfc\Spl\SplFileObject::fputcsv |
SplFileObject::setCsvControl |
Ajgl\Csv\Rfc\Spl\SplFileObject::setCsvControl |