J
J
JohnxFFF2019-10-02 11:38:02
PHP
JohnxFFF, 2019-10-02 11:38:02

Add class to composer autoload?

Good afternoon, I can’t load the package on the server through the composer (it kills the task, there is not enough memory).
1. Therefore, I downloaded composer.json and requested the package locally ( composer require...), it downloaded, but something went wrong and autoload was not updated.
2. I upload the folder from vendor to the hosting
3. I do composer dump-autoload --optimize
As a result, the autoload was not updated, the class was not found, and remained
. Please tell me, how else can I manually download the package and update the autoload?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JohnxFFF, 2019-10-02
@JohnxFFF

Understood.
In general, in the project (it can be at least empty), we do
Next, we transfer the required package from the vendor, and in the vendor / composer we look for everything related to the package, insert all the entries into the working vendor / composer and that's it.
Crutch, but sometimes it's just a necessity

G
green_goo, 2019-10-02
@green_goo

downloaded, but something went wrong and autoload was not updated

Making "something" go "like"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question