Lua to PHP transpiler that converts Lua source code into PHP. Current version 0.4.2-1. The package is experimental, with many caveats: limited Lua 5.1 support, no metatables, no loadstring, restricted print and error functions, and tables become PHP objects with an 'array' property. It works via CLI command lua2php. Suitable for niche transpilation needs, but not production-ready.
npm install lua2phpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic CLI usage: convert a Lua file to PHP using npx.
Concatenate multiple arguments into a single string before passing to print.
Access table elements via $table->array[index] instead of $table[index].
Avoid using these Lua features in code to be transpiled.
No dependency data recorded yet.