2017 © Pedro Peláez
 

library csv-helper

协程读取,处理速度快,可以识别编码

image

aprchen/csv-helper

协程读取,处理速度快,可以识别编码

  • Tuesday, March 6, 2018
  • by April2
  • Repository
  • 1 Watchers
  • 0 Stars
  • 213 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 53 % Grown

The README.md

Build Status License Php Version, (*1)

csvHelper

协程版文件处理,csv, (*2)

安装, (*3)

composer require aprchen/csv-helper dev-master 

使用方法:, (*4)

通过路径读取, (*5)


/** @var Aprchen\CsvHelper\Mapping\FileInterface $file */ $file = Aprchen\CsvHelper\FileFactory::createFileWithPath($path); $reader = new Aprchen\CsvHelper\Reader(); $reader->setFile($file); $content = $reader->getContent(); $fileEncoding = (new Aprchen\CsvHelper\CharsetHelper())->getEncoding($file); foreach($content as $item){ //todo }

The Versions

06/03 2018

dev-master

9999999-dev

协程读取,处理速度快,可以识别编码

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.10
  • ext-mbstring *

 

The Development Requires

by ott321

csv read write filter export import