{"library":"js2php","type":"library","category":null,"description":"js2php is an experimental JavaScript to PHP source-to-source transpiler (version 0.1.7). It converts ES6 features like classes, arrow functions, template strings, and many core JavaScript prototypes (Array, JSON, Math, etc.) into PHP. The project is clearly marked as experimental and not recommended for production use. It is published on npm and has an online demo. There is no active development or maintenance; it is effectively abandoned.","language":"javascript","status":"abandoned","version":"0.1.7","tags":["javascript","php","transpiler","transcompiler"],"last_verified":"Fri May 01","install":[{"cmd":"npm install js2php","imports":["import { compile } from 'js2php'","npx js2php input.js > output.php"]},{"cmd":"yarn add js2php","imports":[]},{"cmd":"pnpm add js2php","imports":[]}],"homepage":null,"github":"https://github.com/endel/js2php","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/js2php","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}