Because I am both lazy and stupid, I initially decided to parse Yaml files as strings, hunting for the info I needed with functions like stristr(). This was for the cron scripts that iterate over the sites using the Codewi.se software. Since the software was built using the Symfony framework, there are a lot of Yaml files. Since the cron
scripts live outside of Symfony,
and iterate over every site on our servers, I couldn’t use the built-in Symfony tools to parse the Yaml.
Thankfully, the team behind Symfony broke up the software into easy to use components. I just downloaded and installed sfYaml. This was easy to install, and now I’m parsing the Yaml files in a reliable way.