Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File ./vendor/autoload.php missing or not readable in phpmyadmin

This question is different from: https://stackoverflow.com/questions/36150377/missing-vendor-autoload-php
I want to contribute to phpmyadmin. I cloned the github repo in my machine using Github Desktop software. I copied the downloaded files in xampp so that I can run phpmyadmin. But when I launch the phpmyadmin page, this error occurs:

File ./vendor/autoload.php missing or not readable.
Most likely you did not run Composer to install library files.

Where can I get that file? I saw something that uses composer create-project command but I don't get that where should I type that command?
I also downloaded phpmyadmin from their website and copy pasted in xampp directory and it worked well. It didn't give any such error.
What should I do?

like image 388
Kashyap Kotak Avatar asked Mar 15 '17 08:03

Kashyap Kotak


People also ask

How do you use autoload vendor?

Method 1: Enter a Command on the terminal This library will be saved in the vendor file in your PHP project. In addition, the vendor/autoload. php file is automatically created. This file is used for autoloading libraries for the PHP project.

How autoload PHP class the composer way?

After you create the composer. json file in your project root with the above contents, you just need to run the composer dump-autoload command to create the necessary autoloader files. These will be created under the vendor directory. Finally, you need to include the require 'vendor/autoload.

What is autoload PHP in laravel?

Auto-Loading allows you to load class files when they are needed without explicitly loading or including them. This gives you ease in running your application by loading those files automatically which are needed every time. Laravel is built to work with Composer.


1 Answers

This changed as of v4.7.0 https://www.phpmyadmin.net/files/4.7.0/

Starting with this version, phpMyAdmin uses Composer to manage PHP library dependencies while under development. Users downloading the official source distribution will not notice a difference, however users of the git repository should refer to https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git for details.

Here's the change PR for those interested: github.com/phpmyadmin/phpmyadmin/pull/11976

like image 52
DeeBee Avatar answered Sep 27 '22 23:09

DeeBee