php-transpiler
Transpiler API to convert php-parser AST to Javascript
Installation
This library is distributed with npm :
npm install php-transpiler --save
Usage
// initialize the php parser factory classvar engine = ;var transpiler = ; var jsCode = transpiler;console;
Will output :
module.exports = function($php) {
$php.stdout.print ('hello world');
};
Misc
This library is released under BSD-3 license clause.