A
A
Alexander2018-09-25 12:12:12
Composer
Alexander, 2018-09-25 12:12:12

Why doesn't php find the package from composer?

project structure:
user
-data
--coposer.json
--www
---site.ru
----index.php
there were no errors during installation, I use composer for the first time
J2bql8FXlZOMm6.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wentixon, 2018-09-25
@Alexandr220

First, install the composer in the folder with the site, otherwise you have everything scattered incomprehensibly how. In index.php, include the file from the vendor folder and don't forget to include the classes via use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question