title: What is the best way to convert an existing php class into Java?
body: <p>I have been tasked with converting several php classes into java classes, which is quickly becoming a nightmare for me. I understand the basic language structure, it being similar to C. It is all of the function calls and class calls that seem to go nowhere and the fact that a var can be declared in the <strong>!middle of an expression!</strong> that is spinning my head, oh and the fact that there is zero "0" documentation.</p>
  
  <p>What is the best <strong>method</strong> (and/or) <strong>tool</strong> (and/or) <strong>reference material</strong> to convert the php into java code?</p>
  
  <p>edit: There is 3 reasons that I am having to convert the php to java. </p>
  
  <ol>
  <li>The usual reason, my boss told me too.</li>
  <li>The php is too slow, it is taking <strong>minutes</strong> sometimes to run a request to the server.  </li>
  <li>php is a nightmare to scale and maintain.(at least for us strong typed language types)</li>
  </ol>