|Ondřej Hruška dde0595ee0 Fix wrong font family, shorten statusbar text||1 year ago|
|src||1 year ago|
|.gitignore||2 years ago|
|LICENSE.txt||2 years ago|
|README.md||2 years ago|
|composer.json||2 years ago|
|screenshot.png||2 years ago|
This is a cleaned and improved continuation of Seldaek/php-console,
forked in 2015, and as of 2018 turned into a Laravel package and published to packagist as
PHP Sandbox is a web editor to try your PHP code. It allows you to run small bits of code in the context of your Laravel application, e.g. to test functionality or verify algorithms.
There is no isolation or security built in, it is literally
eval() with user-provided code.
Absolutely DO NOT run this on a production server, and if you must, ensure it is not publicly accessible.
PHP Sandbox is meant for a local dev environment. It is disabled by default, and you can enable it using
(see the Installation section below).
Tip: Press Ctrl+Enter to evaluate the code
It is a Composer package for the Laravel framework.
composer require mightypork/php-sandbox), then
config/app.phpfile (providers section):
php artisan vendor:publishand select the package; this copies the JS and CSS assets to your public folder, and creates the config file (
ENABLE_PHP_SANDBOX=trueto your .env file to enable access
The sandbox is available at
If you wish to change the path, that can be done in the config file. You can also decide which middleware to use.
This is a fork of the original code by Seldaek (Jordi Boggiano), as it was on GitHub in 2015, cleaned and turned into a Laravel package.
PHP Sandbox is licensed under the New BSD License.
I don't like Microsoft.