PHP Class Pagekit\Installer\Helper\Composer

Afficher le fichier Open project: pagekit/pagekit Class Usage Examples

Protected Properties

Свойство Type Description
$file string
$io Composer\IO\ConsoleIO
$output Symfony\Component\Console\Output\OutputInterface
$packages array

Méthodes publiques

Méthode Description
__construct ( array $config, null $output = null )
install ( array $install, boolean $packagist = false, boolean $writeConfig = true, boolean $preferSource = false ) : boolean
isInstalled ( $name ) : boolean Checks if a package is installed by composer.
uninstall ( array | string $uninstall, boolean $writeConfig = true )

Méthodes protégées

Méthode Description
addPackages ( $packages ) : array
composerUpdate ( array | boolean $updates = false, array $refresh = [], boolean $packagist = false, boolean $preferSource = false ) : boolean Runs Composer Update command.
getComposer ( boolean $packagist = false ) : null Returns composer instance.
getIO ( ) : Pagekit\Installer\Helper\InstallerIO
memoryInBytes ( $value ) : integer Converts memory value from 'php.ini' into bytes.
readConfig ( ) : array Reads packages from package file.
removePackages ( $packages ) : array
writeConfig ( ) Writes changes to packages file.

Method Details

__construct() public méthode

public __construct ( array $config, null $output = null )
$config array
$output null

addPackages() protected méthode

protected addPackages ( $packages ) : array
$packages
Résultat array

composerUpdate() protected méthode

Runs Composer Update command.
protected composerUpdate ( array | boolean $updates = false, array $refresh = [], boolean $packagist = false, boolean $preferSource = false ) : boolean
$updates array | boolean
$refresh array
$packagist boolean
$preferSource boolean
Résultat boolean

getComposer() protected méthode

Returns composer instance.
protected getComposer ( boolean $packagist = false ) : null
$packagist boolean
Résultat null

getIO() protected méthode

protected getIO ( ) : Pagekit\Installer\Helper\InstallerIO
Résultat Pagekit\Installer\Helper\InstallerIO

install() public méthode

public install ( array $install, boolean $packagist = false, boolean $writeConfig = true, boolean $preferSource = false ) : boolean
$install array [name => version, name => version, ...]
$packagist boolean
$writeConfig boolean
$preferSource boolean
Résultat boolean

isInstalled() public méthode

Checks if a package is installed by composer.
public isInstalled ( $name ) : boolean
$name
Résultat boolean

memoryInBytes() protected méthode

Converts memory value from 'php.ini' into bytes.
protected memoryInBytes ( $value ) : integer
$value
Résultat integer

readConfig() protected méthode

Reads packages from package file.
protected readConfig ( ) : array
Résultat array

removePackages() protected méthode

protected removePackages ( $packages ) : array
$packages
Résultat array

uninstall() public méthode

public uninstall ( array | string $uninstall, boolean $writeConfig = true )
$uninstall array | string [name, name, ...]
$writeConfig boolean

writeConfig() protected méthode

Writes changes to packages file.
protected writeConfig ( )

Property Details

$file protected_oe property

protected string $file
Résultat string

$io protected_oe property

protected ConsoleIO,Composer\IO $io
Résultat Composer\IO\ConsoleIO

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface

$packages protected_oe property

protected array $packages
Résultat array