In order to use the installed dependencies in the project, fill in the path in the php section:


An example of a PHP file adding lines to the log:

<?phprequire_once('vendor/autoload.php');use Monolog\Level;use Monolog\Logger;use Monolog\Handler\StreamHandler;$logger = new Logger('channel-name');$logger->pushHandler(new StreamHandler('app.log', Logger::DEBUG));$logger->info('This is log');$logger->warning('This is log warning');$logger->error('This is log error');?>

The repository used by default is

In order to edit the configuration file:

  1. In the Main menu, choose Sites.

  2. Choose the necessary site and press PHP button.

  3. In the Advanced PHP Settings form that opens, press PHP Composer.

  4. In the form that opens, click on the Configuration File.

  5. Внесите необходимые изменения и нажмите на кнопку Создать.

When saving, the correctness of the JSON format is checked and the execution of the install or update command with the dry-run key is emulated.

For example, the preliminary verification of the installation of dependencies:

/bin/sh -c cd\ /var/www/cm/data/www/\;./composer.phar\ install\ --dry-run