Added an updater example and fixed a bit the php API :)