YAML:Syck for PHP is not read-only anymore

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:

  • associative arrays
  • indexed arrays
  • strings
  • integers
  • floats
  • booleans
  • null

Objects are simply ignored now,though I am planning to add support for them later. See TODO for details.

Example,to give you idea:

$data = array( 'items' => array(  'item 1', 'item 2' ),'count' => 2);echo syck_dump($data);

take a look at my previous yaml-post for installation instructions.

Let me know how this works for you :)

p.s. should I change the name of that function?:-/

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • DZone
  • FriendFeed
  • Reddit
  • Tumblr
  • Twitter
Liked this post? Follow me on twitter:@jimi_dini.

  • http://blog.copperred.net vestel

    Great! I read this post and it made me a little happier.
    But what about syck as a library? Is it possible?
    I’m asking because I think my shared hosting provider won’t be very happy to rebuild php which is used untouched for some month and is perfectly working.

  • http://indeyets.pp.ru/ indeyets

    well,if your hosting doesn’t block dl() function,you can dynamically load it by yourself :-)

    see this for details:
    http://www.php.net/manual/en/function.dl.php#59424

  • endeveit

    thnx :)
    >p.s. should I change the name of that function?:-/
    the name sounds pretty well ;)

  • http://blog.astrumfutura.com Pádraic Brady

    Rubs hands with glee ;) .

    Having emitter functionality will be great!

  • http://www.phpdeveloper.org/news/8190 PHPDeveloper.org

    Alexey Zakhlestin’s Blog:YAML:Syck for PHP is not read-only anymore…

  • http://www.developercast.com/2007/07/06/alexey-zakhlestins-blog-yaml-syck-for-php-is-not-read-only-anymore/ developercast.com »Alexey Zakhlestin’s Blog:YAML:Syck for PHP is not read-only anymore

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

  • http://www.fredrik-holmstrom.se/wordpress/?p=24 Fredrik-Holmstrom.se »Blog Archive »Läsvärda länkar…

    [...] Det går nu också att skriva YAML i PHP,vilket känns väldigt bra. [...]

  • http://sf.jogger.pl php

    It’s look funny ;)

  • http://www.articlesbase.com/internet-articles/anonymous-web-browser-1071049.html Maxiue1

    Insightful read. I have stumbled and twittered this for my friends. Others no doubt will like it like I did.

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna,tincidunt vitae molestie nec,molestie at mi. Nulla nulla lorem,suscipit in posuere in,interdum non magna.