class Composer (View source)

The Composer class is a wrapper for setting up Composer and executing commands.

Methods

__construct()

The constructor runs the setup.

string
run(string $command, bool $getBuffer = false)

Run a given Composer command.

Details

__construct()

The constructor runs the setup.

string run(string $command, bool $getBuffer = false)

Run a given Composer command.

Parameters

string $command
bool $getBuffer

Return Value

string The command output on false or in case $getBuffer is true