Questions tagged [psysh]
3 questions
2
votes
1 answer
PHP shell / psysh: starting directory?
How to change the directory psysh is starting from? It seems to be starting from /var/www/html because any file I try to import is referenced from that path... I'd like to start the shell in my app directory.
Psy Shell v0.10.4 (PHP 7.3.23 — cli) by…

Michael
- 8,357
- 20
- 58
- 86
1
vote
0 answers
Send enter key to child_process using streams
I am trying to send Enter key to a child_process in Node.js. \r\n, \n, isn't actually sending the Enter key to a Psy Shell (a PHP repl).
const execa = require("execa");
const { Readable } = require("stream");
const subprocess = execa("php",…

Tareque Md Hanif
- 77
- 3
- 13
0
votes
1 answer
Laravel - Tinker breakpoint in controller
New to Lavarel.
I am trying to debug a controller's method in Laravel, to do so I'm using Tinker (which is based on Psysh).
I added both of these versions to the breakpoint inside the method signup of my…

Chayemor
- 3,577
- 4
- 31
- 54