Answer the question
In order to leave comments, you need to log in
How to use use outside of the vendor folder?
There is a vendor
folder with an addon. Inside the folder there is index.php, where it is quietly written
require_once 'vendor/autoload.php';
use GIFEndec\Color;
use GIFEndec\Encoder;
use GIFEndec\Frame;
Answer the question
In order to leave comments, you need to log in
Judging by the error, you put use in some not very decent place.
Also Learning Paths in the File System
You probably mean that the index.php file is at the same level as the vendor folder. Otherwise, require would not work and there would be an error. Show the text of the error. Or you have another vendor folder in your vendor folder, which explains the absence of errors in the index.php file. In this case, you need to write the path require_once 'gifendec/vendor/vendor/autoload.php' or remove this extra folder)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question