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


Padraic Brady's Blog:
Zend_Yaml; Gone the way of the Dodo...
February 04, 2008 @ 13:43:00

In filtering through the mass of projects that he's collected around him, Padraic Brady has decided to cut one loose - the Zend Framework package he'd been developing to introduce YAML parsing and functionality to the framework.

I've been going through all those open source projects and cutting the dead weight. [...] One of the victims of this review has been Zend_Yaml. Earlier this morning I found an odd comment on the Zend_Translate_Yaml proposal by Thomas Weidner that he was erasing his proposal on the basis that there had been no progress on Zend_Yaml.

He's removed the proposal from the Zend Framework proposal pages after receiving an email noting that the package would not comply fully to the YAML 1.1 specification and couldn't be included. With the introduction of the Syck extension into PECL, it could support it but Padraic opted to just tell the ZF group about this functionality rather than working on the build himself.

1 comment voice your opinion now!
zendyaml yaml zendframework proposal syck pecl


Mike Naberezny's Blog:
Horde/Yaml 1.0 Released
January 11, 2008 @ 14:38:00

Mike Naberezny has posted about the latest release he's made - a 1.0 released too - of the Horde/Yaml library for working with YAML files/information inside of PHP.

This is the package's first stable release. Chuck Hagenbuch started the library as an adaptation of Spyc around six months ago. Since then, he and I have been quietly using and improving it. Along the way, we fixed many issues, added support for pecl/syck, and wrote a test suite with PHPUnit.

You can find the latest download of the package over on the Horde PEAR channel and you can find out more about the YAML (YAML Ain't Markup Language) spec over on the Yaml.org website.

0 comments voice your opinion now!
horde yaml package library release stable pecl syck horde yaml package library release stable pecl syck


Rails for PHP Blog:
PHP, Meet YAML
January 10, 2008 @ 11:18:00

On the Rails for PHP blog today, there's a new article talking about a method that is normally used to handle configuration files and the like - YAML:

Besides PHP itself, the most popular config file formats for PHP applications are INI and XML files. [...] YAML is a relatively new format that has been pioneered by the Ruby and Rails communities. It blends the best aspects of XML and INI, giving us a format with the flexibility of XML and the ease-of-use of INI.

He compares the YAML support - Ruby's built-in support and PHP's functionality via either the Spyc library/Syck extension or through a PEAR package from the Horde functionality. Quick code snippets are provided for each.

0 comments voice your opinion now!
yaml ruby compare language support syck yaml ruby compare language support syck


Alexey Zakhlestin's Blog:
Syck 0.9.2
November 23, 2007 @ 09:14:00

Alexey Zakhlestin has released the latest version of his Syck tool - a "parser and emitter" of YAML documents.

I've just released syck for php 0.9.2 (a parser and emitter of YAML documents. If you don't know anything about YAML and why it is good: check my previous posts on the subject). A lot of new and tasty features.

Updates he mentions include:

  • stability and consistency fixes
  • enhancements with object-serialization and unserialization
  • loading of objects more class names
0 comments voice your opinion now!
syck update version yaml fix serialization object syck update version yaml fix serialization object


phpaddiction:
PHP Application Configuration with YAML
November 22, 2007 @ 17:56:00

On the phpaddiction website, there's a quick new tutorial showing how to use the YAML technology to make a configuration for your application.

I have always disliked creating configuration data by reading from various formats into global arrays, so I needed to build or borrow a configuration class for my own projects that I could standardize on.

He discusses the base he worked from - a class based on the Zend_Config package in the Zend Framework, using his own sort of caching scheme. He's also included the code to see it in action (including the code download).

1 comment voice your opinion now!
application yaml configuration syck example application yaml configuration syck example


Zend Developer Zone:
Using YAML With PHP and PECL
October 02, 2007 @ 07:54:56

The Zend Developer Zone has a new article today by Vikrim Vaswani covering the use of YAML (Yet Another Markup Language) with PHP via the PECL packages that support it.

If you've ever encountered the same need, or if you're just curious about the YAML format and how it can be used with PHP, then today is your lucky day. Over the next few pages, I'm going to give you a crash course in YAML and in PHP's ext/syck extension, showing you how it can be used to efficiently translate data structures from PHP to YAML, and vice-versa. Come on in, and let's get started!

The tutorial starts with an example of a YAML file before getting into the application portion. He shows how to grab the Syck extension, install it, create a simple YAML file and create a configuration file (and parser) for a simple form application.

2 comments voice your opinion now!
yaml pecl tutorial syck markup language yaml pecl tutorial syck markup language


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


Alexey Zakhlestin's Blog:
Syck for PHP goes Beta (in PECL)
July 11, 2007 @ 08:33:00

Alexey Zakhlestin has announced on his blog today the fact that his PECL package - Syck - has officially gone beta.

This is an extension for reading and writing YAML-files. YAML (rhymes with "camel") is a straightforward machine parsable data serialization format designed for human readability and interaction with scripting languages. YAML is optimized for data serialization, configuration settings, log files, Internet messaging and filtering.

He's also included updated versions of the install instructions (a simple three-step process).

0 comments voice your opinion now!
pecl syck package yaml component pecl syck package yaml component


Alexey Zakhlestin's Blog:
YAML Syck for PHP is not read-only anymore
July 06, 2007 @ 07:51:07

Alexey Zakhlestin mentions some new YAML functionality he's worked up - emitter functionality:

One more good news for you, YAML-users. I've implemented emitter functionality in php-binding of syck library. It is quite straight-forward, no fancy stuff for now, but it should work.

Supported datatypes include associative arrays, strings, integers, floats, booleans and nulls. He includes an example of the code in action (dumping out the information for an associative array). You can get this latest update from the subversion source on his site.

0 comments voice your opinion now!
yaml syck emitter functionality datatypes example subversion yaml syck emitter functionality datatypes example subversion



Community Events





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


community introduction language api laravel release list symfony opinion deployment zendserver interview package install update series library tips podcast framework

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