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.
 
 
 
Ondřej Hruška 5daf66e330 updated readme 9 years ago
ace Removed krumo, updated ace + patch to support traits, changed L&F to monokai/sublime, output changed to plain text, removed clippy 9 years ago
lib Make finding composer cross-platform 10 years ago
.gitignore initial sensiolabs/melody integration 10 years ago
LICENSE Initial import 14 years ago
Makefile building some more automation with a makefile and adding it as a script 12 years ago
README.mdown updated readme 9 years ago
composer.json initial sensiolabs/melody integration 10 years ago
config.php.dist Add bootstrap file support, fixes #32 11 years ago
index.php Removed krumo, updated ace + patch to support traits, changed L&F to monokai/sublime, output changed to plain text, removed clippy 9 years ago
jquery-1.9.1.min.js Update jQuery to 1.9.1 12 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 Removed krumo, updated ace + patch to support traits, changed L&F to monokai/sublime, output changed to plain text, removed clippy 9 years ago
styles.css Removed krumo, updated ace + patch to support traits, changed L&F to monokai/sublime, output changed to plain text, removed clippy 9 years ago

README.mdown

PHP Console

This is a slimmed-down fork modified to look like Sublime Text.

A web console 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.

Screenshot

screenshot

Installation

Clone the git repo and run composer install, and place somewhere it in your webroot.

You can also use the internal PHP server - just run:

$ php -S localhost:1337

And go to http://localhost:1337

Alternatively, 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

Project originally by:

Jordi Boggiano - j.boggiano@seld.be seld.be - @seldaek github.com/Seldaek/php-console

Modified by:

Ondřej Hruška - ondra@ondrovo.com www.ondrovo.com - @MightyPork github.com/MightyPork/php-console

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