V
V
vimbatu2021-08-24 09:20:50
Composer
vimbatu, 2021-08-24 09:20:50

How to correctly connect the PHP library of the Yandex.Market partner API via composer?

All the best.

I'm just starting to work with composer, help me figure it out.
There is a Yandex.Market partner API library on github - https://github.com/yandex-market/marketplace-php-p...

I do everything according to the instructions, as it is written:

through the terminal, the composer require yandex-market/marketplace-php command -partner
As a result, it creates a vendor folder and composer.json with the following content:

{
"require": {
"yandex-market/marketplace-php-partner": "^3.2"
}
}

Then, in the index.php file, at the very beginning I connect autoload:
require '../vendor/autoload.php';

As a result, when trying to use the class, it says that the class was not found.

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question