csv-bundle
![Software License][ico-license]
, (*1)
This bundle is integration for League/Csv in Symfony, (*2)
System Requirements
You need PHP >= 5.5.0 and the mbstring extension to use Csv but the latest stable version of PHP/HHVM is recommended., (*3)
Install
Via Composer, (*4)
``` bash
$ composer require egyg33k/csv-bundle, (*5)
## Usage
``` php
# Reader
$reader = $this->container->get('egyg33k.csv.reader');
$csv = $reader::createFromPath('/home/egyg33k/Desktop/org.csv');
var_dump($csv->fetchOne());
#Writer
$writer = $this->container->get('egyg33k.csv.writer');
$csv = $writer::createFromFileObject(new \SplTempFileObject());
$csv->insertOne(['firstname', 'lastname', 'email']);
$csv->output('users.csv');
Documentation
http://csv.thephpleague.com/, (*6)
Testing
bash
$ phpunit
, (*7)
Security
If you discover any security related issues, please email me@amrsamy.com instead of using the issue tracker., (*8)
Credits
License
The MIT License (MIT). Please see License File for more information., (*9)