Online PHP editor for testing your code. There is no isolation, do not make the web interface public!
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
Ondřej Hruška 551a10bbf5 now shows fatal error message (if possible) před 9 roky
ace Replaced some ace files with minified, removed clippy etc code from js file před 9 roky
.gitignore initial sensiolabs/melody integration před 9 roky
LICENSE Removed bullshit před 9 roky
Makefile Removed bullshit před 9 roky
README.md Update README.md před 9 roky
config.php.dist Add bootstrap file support, fixes #32 před 10 roky
index.php now shows fatal error message (if possible) před 9 roky
jquery-1.9.1.min.js Update jQuery to 1.9.1 před 11 roky
loader.gif Script execution is now done via an async js request, preventing die() and exception to mess up the entire console před 14 roky
php-console.js now shows fatal error message (if possible) před 9 roky
styles.css now shows fatal error message (if possible) před 9 roky

README.md

PHP Sandbox

~ Improved & slimmed down fork of PHP Console ~

A web editor to try your PHP code.

Creating a test file or using php's interactive mode can be a bit cumbersome to try random php snippets. This allows you to run small bits of code easily right from your browser.

It is secure since it's accessible only from localhost, and very easy to setup and use.

Tip: Press Ctrl+Enter to evaluate the code

About this fork

This is a fork of the original code by Jordi Boggiano.

Changes:

  • Changed colors to look more like Sublime Text, with Monokai theme
  • Slightly improved layout
  • Removed info text at the bottom of the screen
  • Output is now plain text, not HTML (more useful for debugging)
  • Removed "krumo" (some kind of PHP library)
  • Removed "clippy" (flash applet for clipboard support)
  • Removed the "Melody" plugin and composer files
  • Updated ACE to 1.2.0 with a patch to support the trait keyword
  • Hidden loader animation (was broken)

Screenshot

screenshot

Installation

Clone the git repo and place it somewhere in your webroot.

You can also use the internal PHP server - run:

$ php -S localhost:1337

And go to http://localhost:1337

You can also use the Makefile - run make and the server will start.

Configuration

Default settings are available in config.php.dist, if you would like to modify them, you can copy the file to config.php and edit settings.

Contributing

Code contributions or ideas are obviously much welcome. Send pull requests or issues on github.

Authors

Originally by:

Jordi Boggiano - <j.boggiano@seld.be>
Web: seld.be
Twitter: @seldaek
GitHub: Seldaek/php-console

Modified by:

Ondřej Hruška <ondra@ondrovo.com>
Web: www.ondrovo.com
Twitter: @MightyPork
GitHub: MightyPork/php-sandbox

License

PHP Console is licensed under the New BSD License, which means you can do pretty much anything you want with it.

New BSD License - see the LICENSE file for details

Acknowledgements

PHP Console bundles the following libraries, and the work of their respective authors is very much appreciated:

  • jQuery licensed under the MIT License
  • ACE licensed under the MPL/LGPL/GPL Licenses