You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2021. It is now read-only.
Click on the new "Tinker" menu item in your Nova application. You can enter any PHP code and press CMD+Enter / CTRL+Enter to evaluate the expression.
The return value will be displayed below.
The previous code and output will be stored in the localstorage in case you want to execute the same code snippets multiple times.
Settings
By default this Pysh will attempt to write to ~/.pysh which for most will result in an error when trying to use tinker. To avoid this issue adding an environment variable to change where Pysh will write to will resolve this:
XDG_CONFIG_HOME=/path/to/new/location
Security: Remote Code Execution
This should only be used for development and testing. Running tinker allows arbitrary code to be executed.
Any executed php code will have the same access as the running php instance. This means that the running application may be altered, and if run with root privileges, one can get complete control of the machine.
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.