hoalqq / commoncsv
处理带有编码 shift-jis 的 csv 文件
v1.1.0
2020-05-18 04:54 UTC
This package is auto-updated.
Last update: 2024-09-19 11:15:51 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
编辑 composer
"require-dev": { "hoalqq/commoncsv": "dev-master" }, "minimum-stability": "dev",
运行:composer update