dev-master
9999999-dev http://www.wh-plus.comMultibyte-Text supported CSV reader and writer
MIT
The Development Requires
1.2.0
1.2.0.0 http://www.wh-plus.comMultibyte-Text supported CSV reader and writer
MIT
The Development Requires
Wallogit.com
2017 © Pedro Peláez
Multibyte-Text supported CSV reader and writer
$csvFile = new Whiteplus\Csv\CsvFile(__DIR__ . '/_data/test-input.csv');
foreach($csvFile as $row) {
var_dump($row);
}
$csvFile = new Keboola\Csv\CsvFile(__DIR__ . '/_data/test-output.csv');
$rows = array(
array(
'col1', 'col2',
),
array(
'line without enclosure', 'second column',
),
);
foreach ($rows as $row) {
$csvFile->writeRow($row);
}
Library is available as composer package. To start using composer in your project follow these steps:, (*2)
Install composer, (*3)
curl -s http://getcomposer.org/installer | php mv ./composer.phar ~/bin/composer # or /usr/local/bin/composer
Create composer.json file in your project root folder:, (*4)
{
"require": {
"php" : ">=5.3.2",
"whiteplus/csv": "1.2.*"
}
}
Install package:, (*5)
composer install
Add autoloader in your bootstrap script:, (*6)
require 'vendor/autoload.php';
Read more in Composer documentation, (*7)
Multibyte-Text supported CSV reader and writer
MIT
Multibyte-Text supported CSV reader and writer
MIT