PHPackages                             wikimedia/luasandbox - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wikimedia/luasandbox

ActivePhp-ext

wikimedia/luasandbox
====================

LuaSandbox is an extension for running untrusted Lua code within a PHP web request. Code is run in a stripped-down, safe environment. Time and memory limits can be set.

4.1.4(yesterday)212↑2900%15MITC

Since Jul 30Pushed yesterday5 watchersCompare

[ Source](https://github.com/wikimedia/mediawiki-php-luasandbox)[ Packagist](https://packagist.org/packages/wikimedia/luasandbox)[ RSS](/packages/wikimedia-luasandbox/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

LuaSandbox is an extension for PHP 7 and PHP 8 to allow safely running untrusted Lua 5.1 code from within PHP, which will generally be faster than shelling out to a Lua binary and using inter-process communication.

This extension has documentation in three different formats. When updating the documentation in one place, remember to update the others as well.

On-wiki documentation
---------------------

[](#on-wiki-documentation)

Installation of the extension and some examples are documented [on mediawiki.org](https://www.mediawiki.org/wiki/LuaSandbox).

PHPdoc style documentation
--------------------------

[](#phpdoc-style-documentation)

PHP interface documentation is provided via stub class definitions in the stubs/ directory. These stubs may be used with IDEs that understand PHPdoc documentation.

These stubs, along with a brief introduction in README.md, may be used to generate online documentation using Doxygen. It should suffice to run `doxygen` with no arguments.

PHP DocBook documentation
-------------------------

[](#php-docbook-documentation)

Documentation in DocBook format is included in the [LuaSandbox chapter](https://www.php.net/manual/en/book.luasandbox.php) in the PHP manual.

To update this manual chapter, submit a pull request to

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance100

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/716c86d71cbf921e7912a505f89d799de398fc0a3af0bd4c8862834b2d642bd7?d=identicon)[wikimedia](/maintainers/wikimedia)

![](https://www.gravatar.com/avatar/3a4c833d9ddebb7d513c80642a7a6c8d99eef600993b6f7f282260d902e586f5?d=identicon)[tstarling](/maintainers/tstarling)

---

Top Contributors

[![anomiex](https://avatars.githubusercontent.com/u/1030580?v=4)](https://github.com/anomiex "anomiex (41 commits)")[![tstarling](https://avatars.githubusercontent.com/u/389141?v=4)](https://github.com/tstarling "tstarling (39 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (30 commits)")[![lavagetto](https://avatars.githubusercontent.com/u/1475424?v=4)](https://github.com/lavagetto "lavagetto (12 commits)")[![akosiaris](https://avatars.githubusercontent.com/u/814130?v=4)](https://github.com/akosiaris "akosiaris (7 commits)")[![atdt](https://avatars.githubusercontent.com/u/376462?v=4)](https://github.com/atdt "atdt (7 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (2 commits)")[![MaxSem](https://avatars.githubusercontent.com/u/1260606?v=4)](https://github.com/MaxSem "MaxSem (2 commits)")[![cscott](https://avatars.githubusercontent.com/u/156080?v=4)](https://github.com/cscott "cscott (2 commits)")[![paravoid](https://avatars.githubusercontent.com/u/1330796?v=4)](https://github.com/paravoid "paravoid (2 commits)")[![alex-mashin](https://avatars.githubusercontent.com/u/11148653?v=4)](https://github.com/alex-mashin "alex-mashin (1 commits)")[![mszabo-wikia](https://avatars.githubusercontent.com/u/2721291?v=4)](https://github.com/mszabo-wikia "mszabo-wikia (1 commits)")[![skizzerz](https://avatars.githubusercontent.com/u/72652?v=4)](https://github.com/skizzerz "skizzerz (1 commits)")[![theresnotime](https://avatars.githubusercontent.com/u/375162?v=4)](https://github.com/theresnotime "theresnotime (1 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (1 commits)")

### Embed Badge

![Health badge](/badges/wikimedia-luasandbox/health.svg)

```
[![Health](https://phpackages.com/badges/wikimedia-luasandbox/health.svg)](https://phpackages.com/packages/wikimedia-luasandbox)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
