wolftotem4 / mycsv
The PHP CLI tool helps you to convert the result from MySQL command to CSV format.
v0.9.4
2017-12-15 08:54 UTC
Requires
- php: ^5.4 || ^7.0
- ext-mbstring: *
Requires (Dev)
- mockery/mockery: ~1.0
- phpunit/phpunit: ~6.0
README
This PHP CLI tool helps you to convert the result from MySQL command to CSV format.
Installation
git clone https://github.com/wolftotem4/mycsv.git
cd mycsv
composer install
Basic Usage
Command Line:
> php mycsv data.txt > data.csv
data.txt
+----------+------------+
| username | phone |
+----------+------------+
| Bob | 123-456789 |
| Mary | 456-789123 |
+----------+------------+
data.csv:
username,phone
Bob,123-456789
Mary,456-789123