Skip to content

Fast, Memory-light, CSV Importer/Exporter that provide better testing experience

License

Notifications You must be signed in to change notification settings

mohammedmanssour/fast-csv

Repository files navigation

Fast CSV

Latest Version on Packagist Tests Total Downloads

Fast, Memory-light, CSV Importer/Exporter that provide better testing experience

Installation

You can install the package via composer:

composer require mohammedmanssour/fast-csv

Usage

Exporting data to csv file

FastCSV::exporter()
    ->header(["One", "Two", "Three"])
    // data can be an array or any object that implements that iterator pattern
    ->data([
        ["Line 1: One", "Line 1: Two", "Line 1: Three"],
        ["Line 2: One", "Line 2: Two", "Line 2: Three"],
    ])
    ->toFile(__DIR__ . '/some.csv') // the target file
    ->export();

Testing

composer test

Credits

About

Fast, Memory-light, CSV Importer/Exporter that provide better testing experience

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages