PHP Composer in Plesk
PHP Composer installs the libraries a PHP project depends on (Laravel, Symfony, and others). The list of libraries is in the composer.json file in the project folder.
Before you start
- Upload the project files together with
composer.json(andcomposer.lock, if you have one) using FTP, File Manager, or Git. - Select a current PHP version for the site: PHP settings. An outdated version (such as 5.6) will not work with modern libraries.
Find your project
- Go to Websites & Domains → your domain → Dev Tools group → PHP Composer.
- Click Scan. Plesk finds
composer.jsonfiles in all folders of the subscription. - Open the detected application and run the dependency installation.

After installation, the libraries appear in the vendor folder next to composer.json. If you change composer.json, run the dependency update again.
If composer.lock is present, Composer installs exactly the versions recorded in it, so the site on the hosting works the same as on your computer.
Do not upload a vendor folder by hand over the one installed by Composer: mixed library versions lead to 500 errors. Back up before updating: backups.
Common mistakes
- Scan finds nothing because the file has a different name or has not been uploaded yet.
- Installation fails with a PHP version error because
composer.jsonrequires a newer PHP than the one selected for the site. - The site document root does not match the framework
publicfolder; check the Document root.