PHP Class Pop\Project\Install

Author: Nick Sagona, III ([email protected])
Show file Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Property Type Description
$cliErrorCodes array CLI error codes & messages

Public Methods

Method Description
cliError ( integer $num, string $arg = null ) : string Return a CLI error message based on the code
cliHelp ( ) : void Print the CLI help message
cliInput ( string $msg = null ) : string Return the (Y/N) input from STDIN
getBootstrap ( ) : string Return the location of the bootstrap file from STDIN
getLanguage ( array $langs ) : string Return the two-letter language code from STDIN
getPop ( ) : string Return the location of the vendor folder and the Pop PHP framework from STDIN
install ( string $installFile ) : void Install the project based on the available config files
instructions ( ) : string Display CLI instructions

Method Details

cliError() public static method

Return a CLI error message based on the code
public static cliError ( integer $num, string $arg = null ) : string
$num integer
$arg string
return string

cliHelp() public static method

Print the CLI help message
public static cliHelp ( ) : void
return void

cliInput() public static method

Return the (Y/N) input from STDIN
public static cliInput ( string $msg = null ) : string
$msg string
return string

getBootstrap() public static method

Return the location of the bootstrap file from STDIN
public static getBootstrap ( ) : string
return string

getLanguage() public static method

Return the two-letter language code from STDIN
public static getLanguage ( array $langs ) : string
$langs array
return string

getPop() public static method

Return the location of the vendor folder and the Pop PHP framework from STDIN
public static getPop ( ) : string
return string

install() public static method

Install the project based on the available config files
public static install ( string $installFile ) : void
$installFile string
return void

instructions() public static method

Display CLI instructions
public static instructions ( ) : string
return string

Property Details

$cliErrorCodes protected static property

CLI error codes & messages
protected static array $cliErrorCodes
return array