Closed arnested closed 3 years ago
Some thoughts on using phpsh as a repl in emacs: https://groups.google.com/forum/m/?fromgroups#!topic/phpsh/X6IJC71hN34
It's possible someone might be interested in some hacking I have been doing in this direction at joddie/boris (check out the drush
branch). It's an experimental fork of d11wtq/boris which adds smart completion of functions and object members, either in a terminal or in Emacs. It also has a drush command to run within a Drupal context. It's still fairly rough but i find it useful.
Unfortunately phpsh seems to be a dead project, and boris has the additional advantage of continuing to work even after normally-fatal errors.
Yes, I just recently started using boris myself and I agree it would probably be better than basing something on phpsh.
I'll remember joddie/boris (drush branch) when I get around to looking deeper into it!
Already in Drush 7: https://github.com/drush-ops/drush/blob/master/commands/core/cli.drush.inc though it might be less than fantastic: https://github.com/drush-ops/drush/commit/839fa921f48b539a7d9b03fe8fb308ee1bb96a8b
Just wanted to also mention psysh
which as a bonus can also be used as a debugger.
I'd suspect that Boris and psysh should be pretty interchangeable, so it could be configurable which to use.
I'm going to close this issue. I think neither drush phpsh-console
, boris
nor psysh
has gotten any widespread use in Drupal development.
It might just be my opinion or lack of observation. Feel free to reopen if you think this should be of real value to anyone now 6-7 years later.
Running "drush phpsh-console" in some shell like mode.