PHP Class iphp, iphp

The shell includes readline support with tab-completion and history. To start the shell, simply run this script from your command line. Use ctl-d to exit the shell, or enter the command "exit".
Show file Open project: apinstein/iphp Class Usage Examples

Protected Properties

Property Type Description
$autocompleteList
$commandEscapeChar
$inReadline
$inputPrompt
$internalCommands
$options
$outputPrompt
$tmpFileShellCommand
$tmpFileShellCommandRequires
$tmpFileShellCommandState

Public Methods

Method Description
__construct ( $options = [] ) Constructor
doCommand ( $command )
fakeReadline ( )
getPromptHeader ( )
historyFile ( )
initialize ( $options = [] )
main ( $options = [] )
options ( )
printHelp ( )
readlineCompleter ( $str )
runREPL ( )
stop ( )

Private Methods

Method Description
getDefaultPhpBin ( )
initializeAutocompletion ( )
initializeCommands ( )
initializeOptions ( $options = [] )
initializeRequires ( )
initializeTags ( )
initializeTempFiles ( )
realReadline ( )
tmpDirName ( )
tmpFileNamed ( $name )

Method Details

__construct() public method

Constructor
public __construct ( $options = [] )

doCommand() public method

public doCommand ( $command )

fakeReadline() public method

public fakeReadline ( )

getPromptHeader() public method

public getPromptHeader ( )

historyFile() public method

public historyFile ( )

initialize() public method

public initialize ( $options = [] )

main() public static method

public static main ( $options = [] )

options() public method

public options ( )

printHelp() public method

public printHelp ( )

readlineCompleter() public method

public readlineCompleter ( $str )

runREPL() public method

public runREPL ( )

stop() public method

public stop ( )

Property Details

$autocompleteList protected property

protected $autocompleteList

$commandEscapeChar protected property

protected $commandEscapeChar

$inReadline protected property

protected $inReadline

$inputPrompt protected property

protected $inputPrompt

$internalCommands protected property

protected $internalCommands

$options protected property

protected $options

$outputPrompt protected property

protected $outputPrompt

$tmpFileShellCommand protected property

protected $tmpFileShellCommand

$tmpFileShellCommandRequires protected property

protected $tmpFileShellCommandRequires

$tmpFileShellCommandState protected property

protected $tmpFileShellCommandState