I am new to php and usage of composer in php. I am using windows 10.
While trying to delete previous installation of composer I think I have mistakenly deleted the composer folder inside phpMyAdmin. Now I am getting the below error while trying to access http://localhost/phpmyadmin/ :
Warning: require_once(C:xamppphpMyAdminvendor/composer/autoload_real.php): failed to open stream: No such file or directory in C:xamppphpMyAdminvendorautoload.php on line 5
Fatal error: require_once(): Failed opening required ‘C:xamppphpMyAdminvendor/composer/autoload_real.php’ (include_path=’C:xamppphpPEAR’) in C:xamppphpMyAdminvendorautoload.php on line 5
was there supposed to be a composer folder inside phpMyAdmin by default? Did I delete something that was used by mysql?
How do I solve it?
2
Answers
The
vendor
folder is required yes. If there’s acomposer.json
file present in yourphpmyadmin
folder you can runcomposer install
to fetch all dependencies into thevendor
folder.Go To xampp>phpMyAdmin first then run "composer install" on your git bash or any other terminal.I hope it will work