承接 imag/csv-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

imag/csv-bundle

最新稳定版本:v1.0.2

Composer 安装命令:

composer require imag/csv-bundle

包简介

Create and manage your CSV

README 文档

README

Manage your csv with this bundle.

Install

  1. Download CsvBundle
  2. Enable the bundle

How get the bundle

Composer

Modify your composer.json on your project root

// {root}/composer.json

{
    [...],
    "require": {
        [...],
        "imag/csv-bundle": "dev-master"
    }
}

Enable the Bundle

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
    // ...
    new IMAG\CsvBundle\IMAGCsvBundle(),
    );
}

Usage

Create a Csv

<?php

// Init the manager
$manager = $this->get('imag_csv.manager.csv');
$manager
    ->setFilename('/tmp/test.csv')
    ->setDelimiter(',')
    ->setEnclosure('"')
    ;

// Create a row on Csv
$row = $manager->createRow();
$row
    ->addField('1')
    ->addField('2')
    ;
$manager->addRow($row);

// Write Csv
$manager->write();

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: CeCILL
  • 更新时间: 2013-05-15