-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
7,526 additions
and
5,257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-proposal-class-properties" | ||
"@babel/plugin-proposal-optional-chaining" | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
# WP Console - WordPress PHP Console powered by PsySH | ||
|
||
### Description | ||
WP Console brings the famous PsySH on your browser. PsySH is a runtime developer console, interactive debugger and REPL for PHP. | ||
|
||
Write your code in code editor, press `Shift+Enter` and get your output in your browser. | ||
Write your code in code editor, press Cmd-Enter(mac) or Ctrl-Enter(win/linux) and get your output in your browser. | ||
|
||
You can also use PsySH with wp-cli with the command `wp shell`. wp-cli has built-in support for psysh already. You need to just active WP Console to use this. | ||
You can also use PsySH with wp-cli with the command `wp shell`. wp-cli has built-in support for psysh already. You need to just activate WP Console to use this. | ||
|
||
WP Console requires WordPress v5.0 or later. | ||
|
||
### Features | ||
- Powerful code editor powered by Ace Editor. | ||
- PHP core and WordPress functions live autocompletion with placeholders. | ||
- `_dump` as the alternative to `var_dump` which uses Symfony VarDumper. | ||
- Get debug.log contents and clear them right from your browser. | ||
- Advanced shell powered by psySH for `wp shell` | ||
- Custom code snippet(coming soon). | ||
- Change editor theme(coming soon). | ||
- WordPress function definition docblock(coming soon). | ||
- Customized editor key bindings(coming soon). | ||
|
||
Please note that, currently PsySH commands like `ls`, `doc`, `show` etc and Magic variables like `$_`, `$__class` etc are not supported in browser console. | ||
|
||
👉 WP Console uses Gutenberg packages and components for its UI/UX. | ||
|
||
### Security Concern | ||
WP Console explicitly checks for `manage_options` permission to display the UI and perform other actions. Yet, this plugin should not be used in production server. |
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
assets/vendor/ace-builds/src-min-noconflict/ext-language_tools.js
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.