The jsc project can convert .net/C# to PHP for you. Overview: http://jsc.sf.net Source: http://jsc.sourceforge.net/examples/web/OrcasAvalonWebApplication/ Example: http://jsc.svn.sourceforge.net/viewvc/jsc/templates/OrcasAvalonWebApplication/