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".
Afficher le fichier Open project: apinstein/iphp Class Usage Examples

Protected Properties

Свойство Type Description
$autocompleteList
$commandEscapeChar
$inReadline
$inputPrompt
$internalCommands
$options
$outputPrompt
$tmpFileShellCommand
$tmpFileShellCommandRequires
$tmpFileShellCommandState

Méthodes publiques

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

Private Methods

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

Method Details

__construct() public méthode

Constructor
public __construct ( $options = [] )

doCommand() public méthode

public doCommand ( $command )

fakeReadline() public méthode

public fakeReadline ( )

getPromptHeader() public méthode

public getPromptHeader ( )

historyFile() public méthode

public historyFile ( )

initialize() public méthode

public initialize ( $options = [] )

main() public static méthode

public static main ( $options = [] )

options() public méthode

public options ( )

printHelp() public méthode

public printHelp ( )

readlineCompleter() public méthode

public readlineCompleter ( $str )

runREPL() public méthode

public runREPL ( )

stop() public méthode

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