Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mixing Lua and PHP?

Tags:

php

lua

I really want to mix Lua and PHP, for example receive a PHP query and process some parts of the query using Lua scripts (being called from the PHP script that got the initial query ).

Any clues about this ? I've seen some libraries to use Lua as some kind of PHP replacement, but I've seen nothing clear about how to use both Lua and PHP together.

Thanks

like image 923
Goles Avatar asked Dec 02 '22 03:12

Goles


1 Answers

Have you seen phplua? It looks like it could do what you want. I found it via the Lua binding-with-other-languages page (it was the only relevant option, for better or worse).

like image 130
John Zwinck Avatar answered Dec 16 '22 18:12

John Zwinck