{"library":"ts2php","type":"library","category":null,"description":"ts2php is a TypeScript to PHP transpiler (v0.30.3, latest release Jan 2021) that converts TypeScript/JavaScript code into PHP. It aims to enable code sharing between front-end and back-end by translating TypeScript into PHP. Key differentiators: it supports a large subset of TypeScript features including classes, interfaces, generics, async/await, and standard library polyfills. It is read-only (not a bidirectional bridge) and generates PHP code that can be used in any PHP project. Releases have slowed, indicating maintenance mode. Requires TypeScript ^3.7.0 as a peer dependency.","language":"javascript","status":"maintenance","version":"0.30.3","tags":["javascript","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install ts2php","imports":["import ts2php from 'ts2php'","import { transpile } from 'ts2php'","import type { CompileOptions } from 'ts2php'"]},{"cmd":"yarn add ts2php","imports":[]},{"cmd":"pnpm add ts2php","imports":[]}],"homepage":null,"github":"https://github.com/searchfe/ts2php","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts2php","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}