Hi,
The code to be translated is fairly straight-forward. There are some math functions that might become a bit slow on the Arduino. Depending on how it is going to be used, we might need to optimize them (shouldn't be too hard either).
The license of the original code is MIT, so it may be used for commercial projects, that makes it easier to just make a plain translation from php to C++ for the Arduino.
Ramiro