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".
Exibir arquivo 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_oe property

protected $autocompleteList

$commandEscapeChar protected_oe property

protected $commandEscapeChar

$inReadline protected_oe property

protected $inReadline

$inputPrompt protected_oe property

protected $inputPrompt

$internalCommands protected_oe property

protected $internalCommands

$options protected_oe property

protected $options

$outputPrompt protected_oe property

protected $outputPrompt

$tmpFileShellCommand protected_oe property

protected $tmpFileShellCommand

$tmpFileShellCommandRequires protected_oe property

protected $tmpFileShellCommandRequires

$tmpFileShellCommandState protected_oe property

protected $tmpFileShellCommandState