iamluc / script
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/iamluc/script
Requires (Dev)
- phpunit/phpunit: ^7.0
- symfony/var-dumper: ^4.0
This package is auto-updated.
Last update: 2025-09-25 09:08:36 UTC
README
Script
is a PHP library for parsing and executing Lua-like scripts.
Example
<?php $parser = new \Iamluc\Script\Parser(); $sandbox = new \Iamluc\Script\Sandbox(); $script = <<<EOS print([[Hello "cruel" world !!]]) EOS; $sandbox->eval($parser->parse($script)); echo $sandbox->getOutput();