PHP code example of plumphp / plum-yaml
1. Go to this page and download the library: Download plumphp/plum-yaml library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
plumphp / plum-yaml example snippets
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"]