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
- Host: GitHub
- URL: https://github.com/smetdenis/csvimport
- Owner: SmetDenis
- License: mit
- Created: 2016-12-01T20:14:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-01T21:30:36.000Z (over 8 years ago)
- Last Synced: 2025-02-10T08:12:53.523Z (3 months ago)
- Language: PHP
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cli Import tool for big CSV files [](https://travis-ci.org/SmetDenis/CSVImport) [](https://coveralls.io/github/SmetDenis/CSVImport?branch=master)
[](https://packagist.org/packages/SmetDenis/CSV-Import) [](https://packagist.org/packages/SmetDenis/CSVImport) [](https://scrutinizer-ci.com/g/SmetDenis/CSVImport/?branch=master)

## 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