clover/text-ltsv
最新稳定版本:1.0.0
Composer 安装命令:
composer require clover/text-ltsv
包简介
Labeled Tab-separated Values (LTSV; cf. http://ltsv.org/) parser for PHP.
README 文档
README
Labeled Tab-separated Values (LTSV; cf. http://ltsv.org/) parser for PHP.
Install
Using Composer as a dependency management tool, you can bring Clover\Text\LTSV in your environment easily with settings below.
{
"require": {
"clover/text-ltsv": "~1.0"
}
}
Usage
<?php $ltsv = new Clover\Text\LTSV(); $values = $ltsv->parseLine("hoge:foo\tbar:baz"); $values = $ltsv->parseFile('log.ltsv'); $it = $ltsv->getIteratorFromFile('log.ltsv'); foreach ($it as $values) { // do something } $ltsv->add('hoge', 'foo')->add('bar', 'baz'); $line = $ltsv->toLine();
License
Free to use under the terms of the New BSD License.
统计信息
- 总下载量: 82.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2013-02-08