keboola/csv-options

CSV options lib

v1.2 2022-10-21 10:34 UTC

This package is auto-updated.

Last update: 2024-12-21 15:29:21 UTC


README

Build Status

Options for csv files

Usage

new CsvOptions(
    string $delimiter = CsvOptions::DEFAULT_DELIMITER,
    string $enclosure = CsvOptions::DEFAULT_ENCLOSURE,
    string $escapedBy = CsvOptions::DEFAULT_ESCAPED_BY
);

Development

Clone this repository and init the workspace with following command:

git clone https://github.com/keboola/php-csv-options
cd php-csv-options
docker-compose build
docker-compose run --rm dev composer install --no-scripts

Run the test suite using this command:

docker-compose run --rm dev composer tests

License

MIT licensed, see LICENSE file.