Online PHP editor for testing your code. There is no isolation, do not make the web interface public!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jordi Boggiano b16059ce0e Add bootstrap file support, fixes #32 10 years ago
ace Update ace, prepare 1.2.2 11 years ago
clippy Update jQuery & move deps in their own folders 13 years ago
krumo I think your meant to use is_readable() here 11 years ago
.gitignore Allow configuring options, closes #30 11 years ago
LICENSE Initial import 14 years ago
Makefile building some more automation with a makefile and adding it as a script 11 years ago
README.mdown Allow configuring options, closes #30 11 years ago
composer.json remove post install script run of make 11 years ago
config.php.dist Add bootstrap file support, fixes #32 10 years ago
index.php Add bootstrap file support, fixes #32 10 years ago
jquery-1.9.1.min.js Update jQuery to 1.9.1 11 years ago
loader.gif Script execution is now done via an async js request, preventing die() and exception to mess up the entire console 14 years ago
php-console.js added server-side runtime information (memory, rendertime) into the consoles statusbar 11 years ago
styles.css added server-side runtime information (memory, rendertime) into the consoles statusbar 11 years ago

README.mdown

PHP Console

A web console to try your PHP code into

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 accessible only from the local host, and very easy to setup and use.

Screenshot

PHP Console screenshot

Installation

Clone the git repo or download it as a zip/tarball, drop it somewhere in your local web document root and access it with http://localhost/path/to/php-console

You can also install it with Composer using this command:

composer create-project --stability=dev --keep-vcs seld/php-console

To update it just run git pull in the directory to pull the latest changes in.

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.

Author

Jordi Boggiano - j.boggiano@seld.be
http://seld.be/ - http://twitter.com/seldaek

Changelog

  • 1.4.0
    • Added control-char escaping to make them more visible
  • 1.3.0
    • Added code persistence across sessions in localStorage + a reset button
  • 1.2.3
    • Fixed syntax highlighting
    • Fixed some styling issues
    • Fixed ajax error handling for non responding backends
  • 1.2.2
    • Updated ACE to latest version
    • Added composer.json support
  • 1.2.1
    • Performance fixes for ACE editor integration
    • JS is no longer a requirement
  • 1.2.0
    • Replaced built-in editor with ACE editor which provides highlighting and other features
    • Handle old setups with magic_quotes enabled
  • 1.1.2
    • Fixed issue with IPv6 loopback not being whitelisted
  • 1.1.1
    • Cross-browser compatibility enhancements
  • 1.1.0
    • Script execution is now done via an async js request, preventing die() and exception to mess up the entire console
    • Added a status bar with char/line display
    • Added a toggle button to expand/collapse all krumo sub-trees at once
    • Cross-browser compatibility enhancements
    • Removing a tab (i.e. 4 spaces) on backspace now
    • Made tab character(s) configurable (see index.php)
  • 1.0.0
    • Initial Public Release

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:

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