定制 mohammedmanssour/fast-csv 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mohammedmanssour/fast-csv

最新稳定版本:v0.0.1

Composer 安装命令:

composer require mohammedmanssour/fast-csv

包简介

Fast, Memory-light, CSV Importer/Exporter that provide better testing experience

README 文档

README

Latest Version on Packagist Tests Total Downloads

Fast, Memory-light, CSV Importer/Exporter that provide better testing experience

Installation

You can install the package via composer:

composer require mohammedmanssour/fast-csv

Usage

Exporting data to csv file

FastCSV::exporter()
    ->header(["One", "Two", "Three"])
    // data can be an array or any object that implements that iterator pattern
    ->data([
        ["Line 1: One", "Line 1: Two", "Line 1: Three"],
        ["Line 2: One", "Line 2: Two", "Line 2: Three"],
    ])
    ->toFile(__DIR__ . '/some.csv') // the target file
    ->export();

Testing

composer test

Credits

统计信息

  • 总下载量: 354
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-09