PHPackages                             plugowski/php\_sandbox - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. plugowski/php\_sandbox

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

plugowski/php\_sandbox
======================

Simple sandbox to quick evaluation php code.

1.4(8y ago)594PHPPHP &gt;=5.6

Since Feb 14Pushed 7y ago4 watchersCompare

[ Source](https://github.com/plugowski/php_sandbox)[ Packagist](https://packagist.org/packages/plugowski/php_sandbox)[ RSS](/packages/plugowski-php-sandbox/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (10)Versions (6)Used By (0)

PHP Sandbox
===========

[](#php-sandbox)

Simple and usefull tool to execute custom php scripts. It allows to block specified function to increase security.

Screenshot
----------

[](#screenshot)

[![PHP Sandbox](https://camo.githubusercontent.com/f420671daf68f8bf4ddaa8c9578dd2bd88cd3e00c44706d78bbcb0e19ac67b6d/687474703a2f2f626c6f672e6c75676f77736b692e65752f77702d636f6e74656e742f75706c6f6164732f323031362f30322f7068705f73616e64626f782e706e673f763d312e31)](https://camo.githubusercontent.com/f420671daf68f8bf4ddaa8c9578dd2bd88cd3e00c44706d78bbcb0e19ac67b6d/687474703a2f2f626c6f672e6c75676f77736b692e65752f77702d636f6e74656e742f75706c6f6164732f323031362f30322f7068705f73616e64626f782e706e673f763d312e31)

Installation
------------

[](#installation)

Clone that repository wherever you want (in my example `/www/php_sandbox`)

```
$ git clone git@github.com:plugowski/php_sandbox.git
$ cd php_sandbox

```

and load all dependencies via composer:

```
$ composer install

```

The final step is to run docker using docker-compose commands (of course the first step is to install docker for your environment.

```
$ docker-compose build
$ docker-compose up -d

```

Now you have working docker, go to your favourite browser and hit that addres:

```
localhost:8080

```

Voila!

Usage
-----

[](#usage)

Just type some code and push `Evaluate` button or use keyboard shortcut on Mac `Command+Enter` or `Ctrl+Enter` on Windows. More shortcuts you can find [here](https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts).

Changed shortcuts by me:

WindowsMacActionCtrl-EnterCommantd-EnterExecute codeCtrl-SCommand-SExecute codeAlt-Shift-UpOption-Shift-UpMove lines upAlt-Shift-DownOption-Shift-DownMove lines downCtrl-DCommand-DCopy lineCtrl-Shift-LCommand-Shift-LShow sidebarCtrl-Shift-SCommand-Shift-SSave SnippetCtrl-Shift-PCommand-Shift-PAdd Library / PackageChangelog
---------

[](#changelog)

- 1.4
    - docker! Now you can use Sandbox with containers and don't be afraid about lost data from computer while use dangerous functions
    - multi php now uses fastcgi to evaluate php scripts, no shel\_exec anymore :)
    - small refactoring
    - new Kint for debugging
- 1.3
    - added library manager, now you are able to add external libraries from packagist, and use it in sandbox directly
- 1.2
    - fixed counting of memory used by script (now it is counting only for evaluated script without extra stuff from bootstrap)
    - added new PhpStorm shortcut
    - changed routing from FatFree to my own (FatFree fired couple ini\_sets which might conflict with security settings, where ini\_set() function will be disabled)
    - added snippets, which you can save and load in any time
    - added possibility to switch between couple of php versions
- 1.1
    - added Kint debug tool for dumping varialbles
    - refactored Config class
- 1.0
    - Initial release
    - visual editor based on ace
    - simple benchmarking (count memory usage, memory peak and execution time)
    - "last load" option

Licence
-------

[](#licence)

That code is licenced under [New BSD License](https://opensource.org/licenses/BSD-3-Clause).

Credits
-------

[](#credits)

To build that tool I used:

- Kint -
- Ace Editor -
- Bootstrap -
- FontAwesome -
- jQuery -

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.9% of commits — single point of failure

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

Every ~120 days

Total

5

Last Release

3264d ago

PHP version history (2 changes)1.0PHP &gt;=5.3.6

1.3PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9a47b72ee41866a45e522f96d2e888f9923fcbb3b103c28b5d5e6b6cb884ced?d=identicon)[plugowski](/maintainers/plugowski)

---

Top Contributors

[![plugowski](https://avatars.githubusercontent.com/u/494745?v=4)](https://github.com/plugowski "plugowski (52 commits)")[![graczu0x0x0x0x0](https://avatars.githubusercontent.com/u/21967217?v=4)](https://github.com/graczu0x0x0x0x0 "graczu0x0x0x0x0 (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/plugowski-php-sandbox/health.svg)

```
[![Health](https://phpackages.com/badges/plugowski-php-sandbox/health.svg)](https://phpackages.com/packages/plugowski-php-sandbox)
```

###  Alternatives

[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

5953.3M56](/packages/roave-backward-compatibility-check)[nicolasbize/magicsuggest

MagicSuggest is a multiple selection auto-suggest input box for Bootstrap 3.

1.3k83.3k4](/packages/nicolasbize-magicsuggest)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)[tatter/workflows

Job task control through dynamic workflows, for CodeIgniter 4

221.6k](/packages/tatter-workflows)

PHPackages © 2026

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