P
P
pathpod2018-04-04 00:37:20
In contact with
pathpod, 2018-04-04 00:37:20

How to install vkcom/vk-php-sdk library?

Hello. I have a problem:
I installed composer, installed vkcom/vk-php-sdk with composer-php7.1 require vkcom/vk-php-sdk included require_once __DIR__ . '/vendor/autoload.php';
But nothing works. When creating an object

$vk = new VKApiClient();

Gives an error message:
Fatal error: require_once(): Failed opening required

What am I doing wrong? The manual says just install and create an object. There is nothing superfluous =(
I wrote to VK technical support, they answered me that they are not very versed in their libraries...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2018-04-04
@LazyDev

  1. Check for /vendor/autoload.php
  2. Check the read permissions of the autoload file
  3. If the script that includes autoload is not located next to the vendor directory, write the absolute path to the file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question