PHP Class PhpBrew\Utils

显示文件 Open project: phpbrew/phpbrew Class Usage Examples

Public Methods

Method Description
canonicalizeBuildName ( $version )
detectArch ( $prefix )
editor ( $file )
endsWith ( $haystack, $needle )
findBin ( string $bin ) : string Find executable binary by PATH environment.
findBinByPrefix ( string $bin ) : string | null Find bin from prefix list.
findIncludePath ( ) : string Return the actual header file path from the lookup prefixes.
findIncludePrefix ( )
findLatestPhpVersion ( $version = null )
findLibDir ( )
findLibPrefix ( )
getLookupPrefixes ( )
getPkgConfigPrefix ( string $package )
pipeExecute ( $command )
readTimeZone ( )
recursive_unlink ( $path, CLIFramework\Logger $logger )
startsWith ( $haystack, $needle )
support64bit ( )
system ( $command, $logger = null, $build = null )

Method Details

canonicalizeBuildName() public static method

public static canonicalizeBuildName ( $version )

detectArch() public static method

public static detectArch ( $prefix )

editor() public static method

public static editor ( $file )

endsWith() public static method

public static endsWith ( $haystack, $needle )

findBin() public static method

Find executable binary by PATH environment.
public static findBin ( string $bin ) : string
$bin string binary name
return string the path

findBinByPrefix() public static method

Find bin from prefix list.
public static findBinByPrefix ( string $bin ) : string | null
$bin string
return string | null

findIncludePath() public static method

Return the actual header file path from the lookup prefixes.
public static findIncludePath ( ) : string
return string full qualified header file path

findIncludePrefix() public static method

public static findIncludePrefix ( )

findLatestPhpVersion() public static method

public static findLatestPhpVersion ( $version = null )

findLibDir() public static method

public static findLibDir ( )

findLibPrefix() public static method

public static findLibPrefix ( )

getLookupPrefixes() public static method

public static getLookupPrefixes ( )

getPkgConfigPrefix() public static method

public static getPkgConfigPrefix ( string $package )
$package string

pipeExecute() public static method

public static pipeExecute ( $command )

readTimeZone() public static method

public static readTimeZone ( )

startsWith() public static method

public static startsWith ( $haystack, $needle )

support64bit() public static method

public static support64bit ( )

system() public static method

public static system ( $command, $logger = null, $build = null )