How to convert code from C# to PHP

I know you’re hoping for someone who had experience but in case no one comes forward…

You might consider just copy and pasting the code into a PHP script and checking what breaks. Write a parser to fix that, run it across the entire script, and see what’s the next thing that breaks. Continue until the script functions as expected.

If you’re not using any of the more involved .Net classes I can’t imagine you’ll have too much trouble.