CSV is a PHP library for parsing, writing, and filtering CSV data.
The library addresses the need to handle CSV documents efficiently in PHP while keeping the codebase lightweight. It leverages PHP's native features to provide memory-efficient reading and writing operations. The tool offers flexible query capabilities, array-to-object mapping, and the ability to transform CSV documents into JSON, XML, or HTML formats. It integrates with PHP's stream filtering capabilities to extend functionality.
Developers should choose this library if they need straightforward CSV manipulation without external dependencies or framework coupling. It suits projects ranging from simple CSV imports to more complex data transformation pipelines. The library requires the ext-filter extension and maintains broad PHP version compatibility across multiple release lines.
The project maintains a comprehensive test suite using PHPUnit alongside coding style compliance checks with PHP CS Fixer and static analysis with PHPStan. The library includes deprecation warnings for PHP 8.4 and 8.6 to help users adapt to upcoming PHP changes affecting CSV handling. Documentation is complete and publicly available, and the project explicitly welcomes contributions with a defined code of conduct.