If the operating system is Debian 10 or later, or Ubuntu 18.04 or later, then
LuaSandbox should typically be installed from the package
php-luasandbox:
sudo apt-get install php-luasandbox
To install LuaSandbox using » PIE, run the following command:
pie install wikimedia/luasandbox
Note: Old releases can be found in the » LuaSandbox PECL package.