• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question How to install / use a composer.json file

Mann87

New Pleskian
Hi, I want to use different plugins for examplte this PayPal SDK there is an composer.json file in the directory. I have downloaded the full project and put it on my hosting directory in myplugins/paypal/. So I have now also the composer.json file in it.

Next step the API says I should include "require __DIR__ . '/vendor/autoload.php';" per PHP. But I think I only get the vendor folder if I install the composer.json or not?

But how I can do that in Plesk Obsidian?

In the past with Plesk Onyx it was very simple...

There it was this way: Link
Using the UI for Managing PHP Project Dependencies with Composer
To find all applications that have composer.json, so that you can manage dependencies, click Scan in Websites & Domains > Applications. The applications will appear in the list in the Applications section. The commands described below are available only for applications with the composer.json file.

Installing Dependencies
To install all modules necessary for your project, in Websites & Domains > Applications > Manage My Applications > click the application name in the list > Install Dependencies.

But in Plesk Obsidian this doesn't work anymore.
 
Back
Top