Minimum PHP version is now 8.0 due to the usage of new Zend APIs.
All functions have been moved to static methods of a new CSV class.
Function names now refer to "buffer" instead of "file" as a string is used.
CSV::collectionToBuffer() now supports iterable collections, not just arrays.
In case of field number miss-match a ValueError is thrown instead of an Error.
A new CSV::bufferToCollectionLax() has been introduced which doesn't throw a ValueError in case of field number miss-match.
Sponsor me via GitHub sponsors: https://github.com/sponsors/Girgias