![]() Removed "krumo", "clippy", and "Melody" (bloat from the original version). ![]() However, some html output works too (in particular dd()) Output is now plain text, not HTML (more useful for debugging).Removed info text at the bottom of the screen.Changed colors to look more like Sublime Text, with Monokai theme.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. You can also decide which middleware to use. If you wish to change the path, that can be done in the config file. Run php artisan vendor:publish and select the package this copies the JS and CSS assets to your public folder, and creates the config file ( config/php-sandbox.php).If it is not, add the service provider to your config/app.php file (providers section): MightyPork\PhpSandbox\PhpSandboxServiceProvider::class The service provider should be automatically found by Laravel via the discover functionality.Install it ( composer require mightypork/php-sandbox), then composer dump-autoload.It is a Composer package for the Laravel framework. ![]() Tip: Press Ctrl Enter to evaluate the code Installation It is disabled by default, and you can enable it using. PHP Sandbox is meant for a local dev environment. There is no isolation or security built in, it is literally eval() with user-provided code.Ībsolutely DO NOT run this on a production server, and if you must, ensure it is not publicly accessible. to test functionality or verify algorithms. It allows you to run small bits of code in the context of your PHP Sandbox is a web editor to try your PHP code. This is a cleaned and improved continuation of Seldaek/php-console,įorked in 2015, and as of 2018 turned into a Laravel package and published to packagist as mightypork/php-sandbox.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |