YAML implements most of the YAML 1.2 specification.
use Symfony\Component\Yaml\Yaml;
$array = Yaml::parse($file);
print Yaml::dump($array);
You can run the unit tests with the following command:
phpunit
[READ-ONLY] Subtree split of the Symfony YAML Component -- clone into Symfony/Component/ (master at symfony/symfony)
YAML implements most of the YAML 1.2 specification.
use Symfony\Component\Yaml\Yaml;
$array = Yaml::parse($file);
print Yaml::dump($array);
You can run the unit tests with the following command:
phpunit
[READ-ONLY] Subtree split of the Symfony YAML Component -- clone into Symfony/Component/ (master at symfony/symfony)
MIT License