YAML is the implementation of YAML written in PHP 5.3 and distributed under the MIT license.
The project is abandoned.
YAML is only supported on PHP 5.3.3 and up.
<?php $data = [ 'string' => 'Hello, world!', 'integer' => 10, 'mapping' => [ 'float' => 5.5, 'NaN' => acos(8), 'infinite' => log(0) ], 'sequence' => [ 1, 2, 3 ], true ]; $representer = new YAML\Representer\DefaultRepresenter; $nodeGraph = $representer->represent($data); $dispatcher = new YAML\EventDispatcher\EventDispatcher; $dispatcher->addSubscriber($eventTree = new YAML\Event\Tree\EventTree); $serializer = new YAML\Serializer\Serializer($dispatcher); $serializer->openStream()->serialize($nodeGraph)->closeStream(); $representer = new YAML\Presenter\Presenter; $representer->present($eventTree); // This stage doesn't work ;(
For transparency and insight into our release cycle, and for striving to maintain backwards compatibility, UTF8 will be maintained under the Semantic Versioning guidelines as much as possible.
For more information on SemVer, please visit http://semver.org/.
Copyright 2011-2012 Artyom Protaskin
Licensed under the MIT License: