PHPackages                             seld/php-console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. seld/php-console

ActiveProject[CLI &amp; Console](/categories/cli)

seld/php-console
================

A console to quickly try and run PHP code in your browser

1.4.0(12y ago)5255.1k91[4 issues](https://github.com/Seldaek/php-console/issues)[1 PRs](https://github.com/Seldaek/php-console/pulls)BSD-3-ClausePHPPHP &gt;=5.2.0

Since Apr 11Pushed 5y ago35 watchersCompare

[ Source](https://github.com/Seldaek/php-console)[ Packagist](https://packagist.org/packages/seld/php-console)[ Docs](http://github.com/Seldaek/php-console)[ RSS](/packages/seld-php-console/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (5)Used By (0)

PHP Console
===========

[](#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
----------

[](#screenshot)

[![PHP Console screenshot](https://camo.githubusercontent.com/dfb0340d05329439af51d2fc5ab8a30aca8953c60b5ee76519143360f1c25e53/687474703a2f2f73656c642e62652f5f6d6973632f7068702d636f6e736f6c652e706e67)](https://camo.githubusercontent.com/dfb0340d05329439af51d2fc5ab8a30aca8953c60b5ee76519143360f1c25e53/687474703a2f2f73656c642e62652f5f6d6973632f7068702d636f6e736f6c652e706e67)

Installation
------------

[](#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

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.

You can use the internal PHP server too.
run `php -S localhost:1337` in a terminal and go to `http://localhost:1337/`.

Configuration
-------------

[](#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
------------

[](#contributing)

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

Author
------

[](#author)

Jordi Boggiano -
 -

Changelog
---------

[](#changelog)

- 1.5.0-dev
    - Added melody-script integration. requires a composer binary within the systems/webservers PATH env variable.
    - Updated bundled ACE editor to 1.1.8
    - Layout is now flex-css based
    - Added a new `bootstrap` option to be include before source evaluation
    - Moved tabsize, ip-whitelist into an option
    - Added servers-side runtime information, to be rendered in the consoles statusbar
    - Allow configuring options
- 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](http://ace.ajax.org/) which provides highlighting and [other features](https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts)
    - 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
-------

[](#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
----------------

[](#acknowledgements)

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

- [krumo](http://krumo.sourceforge.net/) licensed under the LGPL
- [jQuery](http://jquery.com) licensed under the MIT License
- [ACE](http://ace.ajax.org/) licensed under the MPL/LGPL/GPL Licenses
- [Clippy](https://github.com/mojombo/clippy) licensed under the MIT License

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 68% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~27 days

Total

4

Last Release

4646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b69782e1d7f426ef78f61d159c466a536372eff931f13981ac578fa3f4649352?d=identicon)[Seldaek](/maintainers/Seldaek)

---

Top Contributors

[![Seldaek](https://avatars.githubusercontent.com/u/183678?v=4)](https://github.com/Seldaek "Seldaek (68 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (17 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (3 commits)")[![enderandpeter](https://avatars.githubusercontent.com/u/4011193?v=4)](https://github.com/enderandpeter "enderandpeter (3 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (2 commits)")[![ManUtopiK](https://avatars.githubusercontent.com/u/188172?v=4)](https://github.com/ManUtopiK "ManUtopiK (1 commits)")[![mikeSimonson](https://avatars.githubusercontent.com/u/907613?v=4)](https://github.com/mikeSimonson "mikeSimonson (1 commits)")[![rlerdorf](https://avatars.githubusercontent.com/u/54641?v=4)](https://github.com/rlerdorf "rlerdorf (1 commits)")[![fawmi](https://avatars.githubusercontent.com/u/16363859?v=4)](https://github.com/fawmi "fawmi (1 commits)")[![silvanm](https://avatars.githubusercontent.com/u/477268?v=4)](https://github.com/silvanm "silvanm (1 commits)")[![Kevinrob](https://avatars.githubusercontent.com/u/4509277?v=4)](https://github.com/Kevinrob "Kevinrob (1 commits)")[![davgothic](https://avatars.githubusercontent.com/u/158586?v=4)](https://github.com/davgothic "davgothic (1 commits)")

---

Tags

phpconsole

### Embed Badge

![Health badge](/badges/seld-php-console/health.svg)

```
[![Health](https://phpackages.com/badges/seld-php-console/health.svg)](https://phpackages.com/packages/seld-php-console)
```

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k230.3M226](/packages/nunomaduro-termwind)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M10](/packages/nunomaduro-laravel-console-task)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9985.2k](/packages/mehrancodes-laravel-harbor)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)[alecrabbit/php-cli-snake

Lightweight cli spinner with zero dependencies

28209.7k5](/packages/alecrabbit-php-cli-snake)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
