iamluc/script

Maintainers

Details

github.com/iamluc/script

Source

Issues

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/iamluc/script

dev-master 2019-05-24 14:00 UTC

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();

License

MIT