2017 © Pedro Peláez
 

library psysh-hoa-console

PsySH using Hoa\Console readline library.

image

zonuexe/psysh-hoa-console

PsySH using Hoa\Console readline library.

  • Wednesday, March 1, 2017
  • by zonuexe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 314 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

PsySH Hoa\Consle

PsySH with pure PHP readline support from Hoa\Console., (*1)

Notice

This project will be abandoned in the future (after psy/psysh next major release)., (*2)

You can use this package in psy/psysh:0.7.2 or earlier., (*3)

This code is integrated into PsySH. (Pull Request #300 · bobthecow/psysh is merged.), (*4)

Setup

Composer

Get Composer., (*5)

Global Install

composer require global require zonuexe/psysh-hoa-console, (*6)

Project REPL

cd /path/to/your/project; composer require zonuexe/psysh-hoa-console, (*7)

Put snippet into your private REPL code., (*8)

use Psy\Readline\GNUReadline;
use Psy\Readline\Libedit;
use zonuexe\Psy\Readline\HoaConsoleAdapter;

$is_dumb = !isset($_ENV['TERM']) || ($_ENV['TERM'] === 'dumb');
$config = new \Psy\Configuration;

if (!$is_dump && !GNUReadline::isSupported() && !Libedit::isSupported()) {
    $config->setReadline(new HoaConsoleAdapter);
}

$sh = new \Psy\Shell($config);
$sh->run();

See PHPを「シェル化」する [psy/psysh] - 超PHPerになろう (in Japanese), (*9)

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/., (*10)

PsySH Hoa\Consle - Interactive shell using pure PHP readline copyright 2016 USAMI Kenta, (*11)

The Versions

01/03 2017

dev-master

9999999-dev

PsySH using Hoa\Console readline library.

  Sources   Download

MPL-2.0

The Requires

 

01/03 2017

0.0.4

0.0.4.0

PsySH using Hoa\Console readline library.

  Sources   Download

MPL-2.0

The Requires

 

14/11 2016

0.0.3

0.0.3.0

PsySH using Hoa\Console readline library.

  Sources   Download

MPL-2.0

The Requires

 

08/07 2016

0.0.2

0.0.2.0

PsySH using Hoa\Console readline library.

  Sources   Download

MPL-2.0

The Requires

 

25/04 2016

0.0.1

0.0.1.0

PsySH using Hoa\Console readline library.

  Sources   Download

MPL-2.0

The Requires