A lightweight PHP library for efficient CSV parsing, writing, and transformation with a straightforward API.
League CSV is a PHP library that makes CSV data manipulation easy, providing tools for parsing, writing, and filtering CSV files. It solves the problem of handling CSV data efficiently in PHP applications, especially with large datasets, by offering a memory-efficient and scalable approach. The library also supports transforming CSV into other formats like JSON, XML, and HTML.
PHP developers who need to work with CSV data in their applications, such as those building data import/export features, ETL pipelines, or reporting tools. It's suitable for both small projects and large-scale systems requiring performance.
Developers choose League CSV for its straightforward API, memory efficiency, and flexibility without heavy dependencies. It stands out by being framework-agnostic, fully tested, and leveraging PHP's native capabilities for optimal performance.
CSV data manipulation made easy in PHP
Uses PHP streams to handle large CSV files scalably, preventing memory exhaustion as highlighted in the documentation for reading and writing.
Offers robust filtering and array-to-object mapping capabilities, enabling complex data manipulation without extra dependencies.
Converts CSV data into JSON, XML, or HTML outputs, simplifying integration with various systems, as noted in the features.
Fully documented with a dedicated website and unit-tested, ensuring reliability and ease of use for developers.
Requires the ext-filter extension, which may not be enabled in all PHP installations, adding a setup step that isn't always straightforward.
Needs manual ini settings for legacy Macintosh line endings and faces deprecation warnings in PHP 8.4, complicating setup and maintenance.
Focuses solely on CSV files, lacking built-in support for other common data formats like Excel or databases, which may require additional libraries.
Abstraction for local and remote filesystems
An object oriented PHP driver for FFMpeg binary
PHP library that provides a filesystem abstraction layer − will be a feast for your files!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.