Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avin/csv-commander
CSV file operations lib
https://github.com/avin/csv-commander
Last synced: 1 day ago
JSON representation
CSV file operations lib
- Host: GitHub
- URL: https://github.com/avin/csv-commander
- Owner: avin
- Created: 2015-10-04T12:08:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-04T12:33:44.000Z (about 9 years ago)
- Last Synced: 2024-04-28T10:22:33.221Z (7 months ago)
- Language: PHP
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
CSVCommander
=========CSV file operations library.
- Read CSV file to array.
- Write array to CSV file.Code Examples
--------------```php
use Avin\CSVCommander\CSVCommander;$csvCommander = new CSVCommander();
$fileName = __DIR__.'/my.csv';
$data = [
['foo1', 'foo2', 'foo3'],
['bar1', 'bar2', 'bar3'],
];//Write array to CSV file
$result = $csvCommander->saveData($fileName, $data);//Read CSV to array
$resultData = $csvCommander->getData($fileName);
```## License
CSVCommander is licensed under the [MIT License](http://opensource.org/licenses/MIT).
Copyright 2015 [Avin Grape](https://github.com/avin/)