{"library":"php-generator","title":"js2php","description":"Experimental JavaScript to PHP source-to-source transpiler (v0.3.2). Converts ES6 features (classes, arrow functions, template strings) and core JavaScript APIs (Array, JSON, Math, Number, String, Function) to PHP code, with partial Date support. The project is marked as experimental and not for production use. No active maintenance or recent releases.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install php-generator"],"cli":null},"imports":["npm install -g js2php"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// simple.js\nfunction add(a, b) {\n  return a + b;\n}\n\nclass Greeter {\n  constructor(name) {\n    this.name = name;\n  }\n  greet() {\n    return `Hello, ${this.name}!`;\n  }\n}\n\nconsole.log(add(1, 2));\nconsole.log(new Greeter('World').greet());","lang":"javascript","description":"Converts a JavaScript file with ES6 class and arrow function to PHP using the CLI tool.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}