{"library":"lua2php","title":"lua2php","description":"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.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install lua2php"],"cli":{"name":"lua2php","version":null}},"imports":["npx lua2php input.lua"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// First, install the package:\n// yarn add lua2php\n// Then, create a Lua file example.lua:\n// -- example.lua\n// function greet(name)\n//   print(\"Hello, \" .. name)\n// end\n// greet(\"World\")\n// Finally, run:\n// npx lua2php example.lua\n// Outputs PHP code to stdout.","lang":"javascript","description":"Shows basic CLI usage: convert a Lua file to PHP using npx.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}