The sandbox to test your PHP code in Web browser.
The minimum requirement by this project that your server supports PHP 7.4 with JSON extension.
The sandbox apllication base on Slim framework and requires:
- Symfony PHP polyfills to write modern code
- Kint to dump variables
- PHP CS Fixer to format code style
The GUI bases on Bootstrap 5 and Ace editor.
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
composer create-project ensostudio/php-sandbox sandbox
Now you should be able to access the application through the following URL, assuming sandbox
is the directory
directly under the Web root and start build-in HTTP server:
composer run start
Run Phing to re-build public assets:
composer run build