PHP Class PhpBrew\ReleaseList

Show file Open project: phpbrew/phpbrew Class Usage Examples

Public Properties

Property Type Description
$releases .. ] $releases['5.4'] = [ },... ] $releases['5.5'] = [ },... ].
$versions

Public Methods

Method Description
__construct ( $releases = [] )
buildReleaseListFromOfficialSite ( OptionResult $options = null )
fetchRemoteReleaseList ( OptionResult $options = null )
foundLocalReleaseList ( )
getLatestPatchVersion ( $version )
getLatestVersion ( ) Returns the latest PHP version.
getReadyInstance ( OptionResult $options = null )
getReleases ( )
getVersion ( $version )
getVersions ( $key ) Get version by minor version number.
loadJson ( $json )
loadJsonFile ( $file )
loadLocalReleaseList ( )
save ( )
setReleases ( array $releases )

Private Methods

Method Description
downloadReleaseListFromOfficialSite ( $version, OptionResult $options = null )

Method Details

__construct() public method

public __construct ( $releases = [] )

buildReleaseListFromOfficialSite() public static method

public static buildReleaseListFromOfficialSite ( OptionResult $options = null )
$options GetOptionKit\OptionResult

fetchRemoteReleaseList() public method

public fetchRemoteReleaseList ( OptionResult $options = null )
$options GetOptionKit\OptionResult

foundLocalReleaseList() public method

getLatestPatchVersion() public method

public getLatestPatchVersion ( $version )

getLatestVersion() public method

Returns the latest PHP version.
public getLatestVersion ( )

getReadyInstance() public static method

public static getReadyInstance ( OptionResult $options = null )
$options GetOptionKit\OptionResult

getReleases() public method

public getReleases ( )

getVersion() public method

public getVersion ( $version )

getVersions() public method

Get version by minor version number.
public getVersions ( $key )

loadJson() public method

public loadJson ( $json )

loadJsonFile() public method

public loadJsonFile ( $file )

loadLocalReleaseList() public method

save() public method

public save ( )

setReleases() public method

public setReleases ( array $releases )
$releases array

Property Details

$releases public property

.. ] $releases['5.4'] = [ },... ] $releases['5.5'] = [ },... ].
public $releases

$versions public property

public $versions