PHP Class Vinkla\Climb\Composer

Author: Vincent Klaiber ([email protected])
Show file Open project: vinkla/climb Class Usage Examples

Protected Properties

Property Type Description
$directory string The directory path.

Public Methods

Method Description
__construct ( string $directory ) : void Create a new composer instance.
getInstalledPackages ( ) : array Get installed package versions.
getRequiredPackages ( ) : array Get required package versions.

Protected Methods

Method Description
getFileContents ( string $file ) : array Get file content.

Method Details

__construct() public method

Create a new composer instance.
public __construct ( string $directory ) : void
$directory string
return void

getFileContents() protected method

Get file content.
protected getFileContents ( string $file ) : array
$file string
return array

getInstalledPackages() public method

Get installed package versions.
public getInstalledPackages ( ) : array
return array

getRequiredPackages() public method

Get required package versions.
public getRequiredPackages ( ) : array
return array

Property Details

$directory protected property

The directory path.
protected string $directory
return string