Pádraic Brady has a new post on his blog today along the theme of his recent YAML efforts - this time spotlighting the proposal he's submitted to the Zend Framework project for a Zend_Yaml component.
So isn't it time there was something native to PHP to allow everyone work with the YAML format? Well, I think so... So last week I ran off and did some digging, coding, and sacrificed a few white pigeons to the dark gods of inspiration. Once the pigeon blood and other...eh...bits were mopped up, I wrote the proposal for the Zend Framework - read it here. It's nothing fancy, just a general outline and some sample use cases.
And, according to the proposal:
The interface to Zend_Yaml will be deliberately simple supporting the deserialisation of YAML from either a file resource or a native string. Also supporting will be the serialisation of PHP native types into the YAML format. The default return value will be in the form of an array. Similar to Zend_Json, an option to decode YAML into stdClasses will also be offered for consistency.