ivanomatteo/csv-read-write

easy way to read and write csv files

0.1.2 2022-01-11 12:19 UTC

README

Latest Version on Packagist Tests Total Downloads

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require ivanomatteo/csv-read-write

Usage

use IvanoMatteo\CsvReadWrite\CsvWriter;

(new CsvWriter(__DIR__."/tmp.csv"))
->format(';','"',"\\")
->write(
    [
        ['aaa','bbb', 'ccc'],
        ['foo','bar', 'baz'],
    ], 
    ['column1', 'column2', 'column3'] // optional first row
);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.