|
|
пре 14 година | |
|---|---|---|
| .. | ||
| Exception | пре 14 година | |
| Dumper.php | пре 14 година | |
| Escaper.php | пре 14 година | |
| Inline.php | пре 14 година | |
| Parser.php | пре 14 година | |
| README.md | пре 14 година | |
| Unescaper.php | пре 14 година | |
| Yaml.php | пре 14 година | |
| composer.json | пре 14 година | |
YAML implements most of the YAML 1.2 specification.
use Symfony\Component\Yaml\Yaml;
$array = Yaml::parse($file);
print Yaml::dump($array);
Unit tests:
https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Yaml