This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Yaml
Fabien Potencier cafd4af7cd Merge branch '2.3' into 2.7
* 2.3:
  [DomCrawler] Invalid uri created from forms if base tag present
  [Console] update param type phpdoc for StreamOutput
  [Console] fix typo in OutputInterface
  [HttpKernel] fix broken multiline <esi:remove>
  [DoctrineBridge] Fixed #14840
  [FrameworkBundle] add a suggest for the serializer component
  [Yaml] Fix the parsing of float keys
  [Console] Ensure the console output is only detected as decorated when both stderr and stdout support colors
  Improve exception messages.
  Fix that two DirectoryResources with different patterns would be deduplicated
  Tests fix clockmock
  [WebProfilerBundle] Added tabindex="-1" to not interfer with normal UX
  missing "YAML" in the exception message.
  [framework-bundle] Add Test for TranslationUpdateCommand
  Use ObjectManager interface instead of EntityManager
2015-09-14 16:14:09 +02:00
..
Exception Docblock fixes 2014-11-30 13:33:44 +00:00
Tests Merge branch '2.3' into 2.7 2015-09-14 16:14:09 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md [Yaml] added CHANGELOG 2012-04-26 19:44:03 +02:00
composer.json Merge branch '2.6' into 2.7 2015-05-02 17:21:08 +02:00
Dumper.php Docblock fixes 2014-11-30 13:33:44 +00:00
Escaper.php CS fixes 2015-04-16 09:01:03 +02:00
Inline.php Merge branch '2.3' into 2.6 2015-06-18 14:58:06 +02:00
LICENSE Updated copyright to 2015 2015-01-01 13:56:52 +01:00
Parser.php Merge branch '2.3' into 2.7 2015-09-14 16:14:09 +02:00
phpunit.xml.dist [2.3] require-dev PHPUnit bridge 2015-02-24 11:24:26 +01:00
README.md renamed composer.phar to composer to be consistent with the Symfony docs 2015-02-08 08:41:14 +01:00
Unescaper.php fixes CS 2015-08-24 09:13:45 +02:00
Yaml.php bug #14900 Silence deprecation warnings by default (reecefowell) 2015-06-10 17:30:22 +02:00

Yaml Component

YAML implements most of the YAML 1.2 specification.

use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse(file_get_contents(filename));

print Yaml::dump($array);

Resources

You can run the unit tests with the following command:

$ cd path/to/Symfony/Component/Yaml/
$ composer install
$ phpunit