|
|
пре 10 година | |
|---|---|---|
| .. | ||
| Exception | пре 10 година | |
| Tests | пре 10 година | |
| CHANGELOG.md | пре 10 година | |
| Dumper.php | пре 10 година | |
| Escaper.php | пре 10 година | |
| Inline.php | пре 10 година | |
| LICENSE | пре 10 година | |
| Parser.php | пре 10 година | |
| README.md | пре 10 година | |
| Unescaper.php | пре 10 година | |
| Yaml.php | пре 10 година | |
| composer.json | пре 10 година | |
| phpunit.xml.dist | пре 10 година | |
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