News Feed
Sections




News Archive
feed this:

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

Lukas Smith's Blog:
YAML and PHP
May 26, 2008 @ 13:04:58

In this new post from Lukas Smith he talks about YAML, that handy data storage format and the two methods for its use in PHP (and why he's stuck with one of them).

If you use YAML in PHP, then you had until recently the choice between the C based PECL extension syck or the horrible spyc PHP based implementation. With syck it has the issue that it only supports the core standard and not stuff like merge-key, which is a very very useful extension to the core YAML standard.

He also points out another implementation that the Symfony framework has created - one built around regular expressions (slower, but a "more correct" version).

0 comments voice your opinion now!
yaml language extension spyc syck


Developer Tutorials Blog:
Why you should be using YAML for config
January 25, 2008 @ 11:22:00

The Developer Tutorials blog has a new post mentioning the use of YAML structure for creating configuration files in your application.

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. [...] It's almost like English; it's as basic as you want. Of course, that's not to say it doesn't support complex structures - this example demonstrates the power of the format.

He also points out the spyc extension that makes working with the files in PHP a breeze.

0 comments voice your opinion now!
yaml config markup language configuration file spyc


Inside Open Source:
Programming with Configuration Files
July 18, 2007 @ 07:56:00

From the Inside Open Source APress blog, there's a new post by Michael Stahnke documenting his search for a useful way to work with configuration files in a PHP application.

Recently I was working on developing an application that required a configuration file to setup. [...] XML is too hard to read for management-types. Plain text wasn't all that easy to handle from a code perspective. Then I remembered that when I played with Ruby on Rails it used something called YAML, and thought I'd give that go.

Searching around, he discovered the spyc library that aids in the YAML development and, as suggested by a commentor, the standards-compliant extension syck.

0 comments voice your opinion now!
yaml spyc syck extension library configuration file yaml spyc syck extension library configuration file



Community Events





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


project threedevsandamaybe list community wordpress configure api bugfix language podcast introduction developer release laravel interview library application series code framework

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