iamluc/script

Maintainers

Package info

github.com/iamluc/script

pkg:composer/iamluc/script

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-02-25 10:03:07 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