CSV

pecl install CSV

CSV PHP extension

A new and improved CSV file PHP extension which follows RFC 4180 instead of using a custom escape mechanism.

Supports multi-bytes delimiters, enclosures, and providing a custom EOL sequence.

Sponsor me via GitHub sponsors: https://github.com/sponsors/Girgias

Maintainer

  • George Peter Banyard (lead )

Details

Downloads: 40679
0.4.0
3 years ago
Download DLL for processor with 64 bits architecture (x64)
PHP 8.0
Loading...
Download DLL for processor with 32 bits architecture (x86)
PHP 8.0
Loading...
Request a build
Request to the website owner's team the built this extension with this parameters. The result is not guaranteed and can be impossible for many reasons. The extension source code is frequently not upto date with the most recent PHP version.
If you have another code source for this extension, provide it in comment.
Please (or register) to request a build.
Version 0.4.0 change log


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

requires:

  • php >=8.0.0
  • pearinstaller >=1.4.0