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
- Download CsvBundle
- 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
其他信息
- 授权协议: CeCILL
- 更新时间: 2013-05-15