V
V
v7resspect2017-11-07 13:35:01
linux
v7resspect, 2017-11-07 13:35:01

How to work with composer in linux?

Good day to all.
I need to install google api to work with google drive. For this I installed composer:

curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer

And installed google-api-php client :
composer require google/apiclient:^2.0
Now we need to include autoload.php from google. I found it at this address: /root/vendor/google/apiclient/src/Google/autoload.php . But nothing happens, the file is not included, probably because of the rights. How can I do it right to work with api?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2017-11-07
@v7resspect

Now you need to include autoload.php from google.
No, you need to include autoload.php from composer - that's the whole point of it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question