PHPackages                             satooshi/ltsv-encoder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. satooshi/ltsv-encoder

ActiveLibrary[File &amp; Storage](/categories/file-storage)

satooshi/ltsv-encoder
=====================

LTSV encoder based on Symfony Serializer component

0.2.0(13y ago)35371MITPHPPHP &gt;=5.3.17

Since Mar 1Pushed 13y ago1 watchersCompare

[ Source](https://github.com/satooshi/ltsv-encoder)[ Packagist](https://packagist.org/packages/satooshi/ltsv-encoder)[ Docs](https://github.com/satooshi/ltsv-encoder)[ RSS](/packages/satooshi-ltsv-encoder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (1)

LTSV encoder
============

[](#ltsv-encoder)

[![Build Status](https://camo.githubusercontent.com/efd05dd969ecc8d075ae3cf626c1314909766ac52ea13117ccd0c5d6494f151f/68747470733a2f2f7472617669732d63692e6f72672f7361746f6f7368692f6c7473762d656e636f6465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/satooshi/ltsv-encoder)

LTSV encoder implementation in PHP based on [Symfony Serializer component](http://symfony.com/doc/current/components/serializer.html).

[Labeled Tab-separated Values](http://ltsv.org/)

Installation
============

[](#installation)

To install ltsv-encoder with Composer just add the following to your composer.json file:

```
// composer.json
{
    // ...
    require: {
        // ...
        "satooshi/ltsv-encoder": "dev-master"
    }
}
```

Then, you can install the new dependencies by running Composer’s update command from the directory where your composer.json file is located:

```
# install
$ php composer.phar install
# update
$ php composer.phar update satooshi/ltsv-encoder

# or you can simply execute composer command if you set composer command to
# your PATH environment variable
$ composer install
$ composer update satooshi/ltsv-encoder
```

Packagist page for this component is

autoloader is installed ./vendor/autoloader.php. If you use LTSV encoder in your php script, just add:

```
require_once 'vendor/autoload.php';
```

If you use Symfony2, autoloader has to be detected automatically.

Or you can use git clone command:

```
# HTTP
$ git clone https://github.com/satooshi/ltsv-encoder.git
# SSH
$ git clone git@github.com:satooshi/ltsv-encoder.git
```

Usage
=====

[](#usage)

decode($data, $format, array $context = array())
------------------------------------------------

[](#decodedata-format-array-context--array)

```
