Announcing phpsh -- an interactive shell for PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles  Cheever

    #1

    Announcing phpsh -- an interactive shell for PHP

    Hi,

    We're releasing a readline-based interactive shell for PHP called
    phpsh.

    Users can enter php statements and expressions and they will be
    evaluated on the fly.
    Here is a transcript of a trivial example session:
    php$t = time()
    php= $t
    1156747482
    php= strftime('The current time is %x %X', $t)
    The current time is 08/27/06 23:44:42


    phpsh has been useful for codebase testing, inspection, and interactive
    scripting. It has history (even between sessions), tab-completion, and
    documentation access for user-defined functions. It works with ctags,
    allowing you to instantly jump into the code where a function is
    defined using vim or emacs.

    phpsh is available at http://www.phpsh.org/

    We wrote phpsh as a tool to make PHP development easier and faster at
    Facebook. You can check out other Facebook open source contributions
    at http://developer.facebook.com/opensource.php . phpsh works on
    systems where the python2.4 subprocess module and GNU readline module
    work (Linux and OS X, probably not Windows). phpsh is open source;
    access to the repository is available through darcs, and details of
    license can be found on the phpsh website.

    We hope others find it as useful as we have,
    - Dan and Charlie from Facebook


    Use Meta's developer tools and resources to build solutions that help people connect and grow businesses.



  • ZeldorBlat

    #2
    Re: Announcing phpsh -- an interactive shell for PHP


    Charles Cheever wrote:
    Hi,
    >
    We're releasing a readline-based interactive shell for PHP called
    phpsh.
    >
    Users can enter php statements and expressions and they will be
    evaluated on the fly.
    Here is a transcript of a trivial example session:
    php$t = time()
    php= $t
    1156747482
    php= strftime('The current time is %x %X', $t)
    The current time is 08/27/06 23:44:42
    >
    >
    phpsh has been useful for codebase testing, inspection, and interactive
    scripting. It has history (even between sessions), tab-completion, and
    documentation access for user-defined functions. It works with ctags,
    allowing you to instantly jump into the code where a function is
    defined using vim or emacs.
    >
    phpsh is available at http://www.phpsh.org/
    >
    We wrote phpsh as a tool to make PHP development easier and faster at
    Facebook. You can check out other Facebook open source contributions
    at http://developer.facebook.com/opensource.php . phpsh works on
    systems where the python2.4 subprocess module and GNU readline module
    work (Linux and OS X, probably not Windows). phpsh is open source;
    access to the repository is available through darcs, and details of
    license can be found on the phpsh website.
    >
    We hope others find it as useful as we have,
    - Dan and Charlie from Facebook
    >

    Use Meta's developer tools and resources to build solutions that help people connect and grow businesses.

    http://www.facebook.com/
    How is this different from running php with the -a flag?

    Comment

    Working...