crud-admin-generator
crud-admin-generator copied to clipboard
Error: Could not open file: composer.phar
I tried running
php composer.phar install
but got the error "Could not open file: composer.phar". I'm running the command prompt window from within my admingenerator folder. I've never used composer before so this is new to me. I just want this to allow me to perform CRUD operations on my database.
Have you tried this SO: Could not open input file: composer.phar error in symfony2 using wamp ?
Just read https://getcomposer.org/download/ .
Run this commands inside your admingenerator folder:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
I fixed it. I had to uninstall composer and reinstall it. Thanks everyone for your help!