A
A
aopil2020-12-30 19:16:17
ubuntu
aopil, 2020-12-30 19:16:17

Why is PHP Curl Class not being installed?

I install curl class
In the console I type as indicated in the documentation:

composer require php-curl-class/php-curl-class @dev

Result:
5e0a21f1c6132264017467.png
I don't see any errors. Next, I read the documentation, you need to connect the file require __DIR__ . '/vendor/autoload.php';
Which is missing during the check ................ WHAT DID I DO WRONG, did it install? something tells me that no ..
ps And another additional question: Does everyone install it all through one place? I won’t hide one place already on fire ... any installation always causes a bunch of errors and problems - is it to take into account 2019?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2020-12-30
@aopil

1. don't run composer as root.
2. composer require must either be called in the root directory of the project (judging by the screenshot, you run it in a hamster), or set globally.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question