clover/text-ltsv 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

Build Status

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
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2013-02-08