Syck for PHP goes Beta (in PECL)

Here it is: new and shiny PECL package of Syck

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.

YAML is extensively used by Symfony Framework and there is also a component for Zend Framework in development. But it’s use is not limited by something big — YAML is a perfect solution for configuration-files (way more comfortable than Ini or XML).

Some time ago, I posted installation instructions. Here is the updated version:

  • Install Syck-library using your favorite package-manager (stable 0.55 version will do) [debian, freebsd, etc.]
  • pecl install syck-beta
  • restart Apache of Fast-CGI process (if needed)

Tell me how it works for you :)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter

View CommentsSyck for PHP goes Beta (in PECL)

  • Good job, thank you. The Gentoo syck/php bindings worked but were a mess if you want to change something in your general lamp configuration (e.g. switching from mod_php5 to fastcgi) :-7

  • Pierre Minnieur: if you know how to initiate update of gentoo’s “package” — do it, please :)

  • Great job!

    I’m looking forward to installing it for testing in a while.

  • Alexey Zakhlestin’s Blog: Syck for PHP goes Beta (in PECL)…

  • Hey, Alexey! Been a while…

    This is very timely as we’re just debating starting to use YAML with MidCOM.

  • [...] 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. [...]

  • [...] I need this, to add proper support for YAML-timestamps in my syck extension. [...]

  • [...] Being the buzz-word worshipers that we are, several voices have been heard in the the Zend Framework community for a YAML parser class, and most notably, for a Zend_Config implementation based on YAML. Pádraic Brady already proposed an implementation for Zend_Yaml, but for those of you who are impatient (like me!) and want to use YAML as configuration files in your projects today, here’s a simple and elegant solution: First, you should compile and install Alexey Zakhlestin’s PHP Syck bindings from PECL (note: it’s beta, production use at your own risk!). You’ll need the syck library installed, and once you have it, the extension compiles quite easily. Once you have the Syck extension loaded (check your phpinfo output), you can easily use the following code to create your own Zend_Config_Yaml class, which parses YAML files and behaves just like other Zend_Config implementations: PLAIN TEXT PHP: [...]

  • indeyets: no, i don’t know. i’m just a portage user, not a contributor ;)

  • I use only XML, don’t need YAML.

  • md: XML and YAML are very different beasts and serve different purposes. I guess I should write an article about the difference :)

  • does it work with php 5.3? I always failed to install it…

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

blog comments powered by Disqus