PHP2JS Converter 1.0a

Download Free Version
Buy (USD$12)
Publisher: QwikkeyWare
System requirements: 32-bit Windows 7 or above, 1 GB RAM
This simple PHP to JavaScript conversion tool rapidly batch converts scripts from PHP into JavaScript.
To convert a batch of PHP scripts to JavaScript, one simply needs to copy them across to a .\php_in subfolder. The conversion happens when the user clicks on the 'Start Conversion' button, and the resultant JavaScript files are written to a date and timestamped folder under the .\js_out subfolder.
Individual PHP files are directly converted to individual JavaScript files. Therefore, if a batch contained the following three files, myscript1.php, myscript2.php and myscript3.php, they will be converted to myscript1.js, myscript2.js and myscript3.js.
The output folder will also contain a library JavaScript file named php2jsfuncs.js which will be called by the newly converted files, because they will contain the JavaScript equivalent of commonly-used PHP functions such as preg_match(), preg_replace(), strlen(), count(), and many more...
A php2js.html HTML file will also be created alongside the output files. This is simply a user interface containing buttons calling the final function in each of the converted JavaScript files. This function simply outputs a JavaScript alert indicating that the function has been successfully called. While this does not test whether the PHP code has been been successfully converted, it can be used indicate whether a converted JavaScript is able to load successfully up to and including the final function. If it does not load, then the user will need to debug this manually.
The output folder will also contain a conversion report with details of the conversion, and any recommended action that needs to be taken in order to debug the converted JavaScript code.
After 'conversion', the user will need to manually debug the JavaScript code, in order to ensure that the JavaScript code runs like the PHP source.
Download Free Version    Buy (USD$12)