|
|
hace 10 años | |
|---|---|---|
| .. | ||
| Exception | hace 10 años | |
| Tests | hace 10 años | |
| CHANGELOG.md | hace 10 años | |
| Dumper.php | hace 10 años | |
| Escaper.php | hace 10 años | |
| Inline.php | hace 10 años | |
| LICENSE | hace 10 años | |
| Parser.php | hace 10 años | |
| README.md | hace 10 años | |
| Unescaper.php | hace 10 años | |
| Yaml.php | hace 10 años | |
| composer.json | hace 10 años | |
| phpunit.xml.dist | hace 10 años | |
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);
You can run the unit tests with the following command:
$ cd path/to/Symfony/Component/Yaml/
$ composer install
$ phpunit