Cliffy is a project mainly written in PHP, it's free.
Php websocket framework
Html5Asylum Real time websocket framework in php