News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Using YAML in Your PHP Projects
July 24, 2012 @ 09:06:46

On PHPMaster.com today there's a new tutorial showing you how you can use YAML documents on your applications ("YAML Ain't Markup Language") for configuration files.

Test fixtures, configuration files, and log files all need to be both human and machine readable. YAML (YAML Ain't Markup Language) is a less-verbose data serialization format than XML and has become a popular format among software developers mainly because it is human-readable. YAML files are simply text files that contain data written according to YAML syntax rules and usually have a .yml file extension. In this article, you will learn the basics of YAML and how you can integrate a PHP YAML parser into your projects.

They start with a brief introduction to the YAML syntax by comparing them to the structure of a typical PHP array. They include the YAML output from these examples and how, despite the ease of its use, it shouldn't be considered a replacement for something like XML (they both have their strengths). He points out some of the current YAML parsing libraries and how to integrate them into your app (he uses the Symfony option).

0 comments voice your opinion now!
yaml tutorial introduction parse syntax


blog comments powered by Disqus

Similar Posts

Evolt.org: Working With Fractions In CSS and PHP

PHP-Tools Blog: Analyzing aide (advanced intrusion detection environment) output with PHP

PHPit.net: PHP 5 Objects, Patterns and Practice

Kapustabrothers.com: Indexing PDF Documents with Zend_Search_Lucene

Michael Maclean's Blog: Using Pango for PHP: a taster


Community Events





Don't see your event here?
Let us know!


interview security community tool framework library series version introduction package update symfony opinion release composer application podcast laravel voicesoftheelephpant language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework