An open API service indexing awesome lists of open source software.

https://github.com/smetdenis/csvimport

Cli Import tool for big CSV files
https://github.com/smetdenis/csvimport

Last synced: about 2 months ago
JSON representation

Cli Import tool for big CSV files

Awesome Lists containing this project

README

        

# Cli Import tool for big CSV files [![Build Status](https://travis-ci.org/SmetDenis/CSVImport.svg?branch=master)](https://travis-ci.org/SmetDenis/CSVImport) [![Coverage Status](https://coveralls.io/repos/github/SmetDenis/CSVImport/badge.svg?branch=master)](https://coveralls.io/github/SmetDenis/CSVImport?branch=master)

[![License](https://poser.pugx.org/SmetDenis/CSVImport/license)](https://packagist.org/packages/SmetDenis/CSV-Import) [![Latest Stable Version](https://poser.pugx.org/SmetDenis/CSVImport/v/stable)](https://packagist.org/packages/SmetDenis/CSVImport) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/SmetDenis/CSVImport/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/SmetDenis/CSVImport/?branch=master)

![Preview](http://llfl.ru/images/te/z1hc.png)

## How to install
```sh
composer create-project smetdenis/csvimport:1.x-dev --no-dev
./csvimport/bin/csvimport help
```

## How to run

From file
```sh
./bin/csvimport csv:insert \
--config=./tests/fixtures/config.php \
--source-file=./tests/fixtures/random.csv \
-vvv
```

Or pipeline
```sh
cat ./tests/fixtures/random.csv | ./bin/csvimport csv:insert \
--config=./tests/fixtures/config.php \
-vvv
```

## Unit tests and check code style
```sh
# prepare dev build
make

# Run all unit tests
make test-all

# Run tests manually
./bin/csvimport csv:create \
--config=./tests/fixtures/config.php \
--lines=10000 \
| \
./bin/csvimport csv:insert \
--config=./tests/fixtures/config.php \
-vvv
```

### License

MIT