PHP Class JBZoo\Utils\Env

Show file Open project: jbzoo/utils Class Usage Examples

Public Methods

Method Description
convert ( string $value, integer $options = self::VAR_STRING ) : mixed Converts the type of values like "true", "false", "null" or "123".
get ( string $name, string $default = null, integer $options = self::VAR_STRING ) : mixed Returns an environment variable.
getBinary ( ) : string
getName ( ) : string
getNameWithVersion ( ) : string
getVendorUrl ( ) : string
getVersion ( ) : string
hasPHPDBGCodeCoverage ( ) : boolean
hasXdebug ( ) : boolean
isHHVM ( ) : boolean
isPHP ( ) : boolean
isPHPDBG ( ) : boolean

Method Details

convert() public static method

Converts the type of values like "true", "false", "null" or "123".
public static convert ( string $value, integer $options = self::VAR_STRING ) : mixed
$value string
$options integer
return mixed

get() public static method

Returns an environment variable.
public static get ( string $name, string $default = null, integer $options = self::VAR_STRING ) : mixed
$name string
$default string
$options integer
return mixed

getBinary() public static method

Deprecation:
public static getBinary ( ) : string
return string

getName() public static method

Deprecation:
public static getName ( ) : string
return string

getNameWithVersion() public static method

Deprecation:
public static getNameWithVersion ( ) : string
return string

getVendorUrl() public static method

Deprecation:
public static getVendorUrl ( ) : string
return string

getVersion() public static method

Deprecation:
public static getVersion ( ) : string
return string

hasPHPDBGCodeCoverage() public static method

Deprecation:
public static hasPHPDBGCodeCoverage ( ) : boolean
return boolean

hasXdebug() public static method

Deprecation:
public static hasXdebug ( ) : boolean
return boolean

isHHVM() public static method

Deprecation:
public static isHHVM ( ) : boolean
return boolean

isPHP() public static method

Deprecation:
public static isPHP ( ) : boolean
return boolean

isPHPDBG() public static method

Deprecation:
public static isPHPDBG ( ) : boolean
return boolean