hoalqq/commoncsv

Handle csv with encoding shift-jis

v1.1.0 2020-05-18 04:54 UTC

This package is auto-updated.

Last update: 2025-06-19 12:56:24 UTC


README

$ composer require --dev hoalqq/commoncsv:dev-master
<?php

use Hoalqq\Commoncsv\Commoncsv;

// create a object
$filename = '会員種別.csv';
$header = ['会員種別', 'メールアドレス', 'モバイル会員番号'];
$data = [
    ['取引回','単価','金額'],
    ['取引回','単価','金額']
];
$test = new Commoncsv($filename,$header,$data);

// add attribute to the object
$test->setShowHeader(false); // true is show header, false is not show, default is true
$test->downloadFile();// call function make output file

edit composer

"require-dev": {
    "hoalqq/commoncsv": "dev-master"
},
"minimum-stability": "dev",

run: composer update