Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Your Email:
Blog Feed

Posts Tagged ‘yaml’

Why you should be using YAML for config

in PHP by Akash Mehta


The vast majority of PHP applications out there use native PHP files for configuration. One or more standard PHP files declares a number of variables used for configuration. Given the syntax constraints of PHP - e.g. you can’t put a quote inside quoted values - a culture of developers insisting on managing config files is pretty much standard. But it doesn’t have to be.

YAML, or YAML Ain’t Markup Language, is a “human friendly data serialization standard”. It’s essentially a very basic format for storing data, and uses far less syntax than standard PHP. Here’s a sample of YAML:

(more…)





Blog Categories Blog Archives