Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Plum

PlumYaml integrates Symfony Yaml component into Plum. Plum is a data processing pipeline for PHP.

Latest Version Build Status Scrutinizer Code Quality Code Coverage StyleCI

Developed by Florian Eckerstorfer in Vienna, Europe.

Installation

You can install PlumYaml using Composer.

$ composer require plumphp/plum-yaml

Usage

Please refer to the Plum documentation for more information about using Plum in general.

PlumYaml contains two converters. Plum\PlumYaml\YamlDumpConverter converts an array into YAML and Plum\PlumYaml\YamlParseConverter converts YAML into an array.

use Plum\PlumYaml\YamlDumpConverter;
use Plum\PlumYaml\YamlParseConverter;

$dumpConverter = new YamlDumpConverter();
$dumpConverter->convert(['foo' => 'bar'); // -> "foo: bar"

$parseConverter = new YamlParseConverter();
$parseConverter->convert('foo: bar'); // -> ["foo" => "bar"]

Change Log

Version 0.1 (17 May 2015)

  • Initial release

License

The MIT license applies to plumphp/plum-yaml. For the full copyright and license information, please view the LICENSE file distributed with this source code.

About

PlumYaml integrates Symfony Yaml into Plum. Plum is a data processing pipeline for PHP.

Resources

License

Packages

No packages published
You can’t perform that action at this time.