christiaan / php-sandbox
Php Sandbox in a child process which should make it possible to run user supplied code safely
Installs: 1 166
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 0
Open Issues: 3
Requires
- christiaan/stream-process: *
- react/event-loop: *
- symfony/class-loader: >= 2.1.3
This package is auto-updated.
Last update: 2024-11-06 17:48:15 UTC
README
Php Sandbox in a child process which should make it possible to run user supplied PHP code safely.
This is a proof of concept, it works but as far as I know does not run in production anywhere. Because it runs a process for each sandbox it is also much slower than real sandbox solutions.
If you want to offer a scripting solution to your end users you are most likely better off using either the LUA or JavaScript V8 php extensions.
Installation
php composer.phar require christiaan/php-sandbox
Usage
See the various tests
Known issues
Does not work on Windows, most likely due to this bug