I have Composer in my PHP project installed, and want to use the autoloader. On this page I read how the
composer.json file should look like and that I should run the command
composer.json file looks as follows
When I run from the terminal
php composer.phar dump-autoload, I get the following error message.
- What second parameter and what array is it talking about?
- How can I solve this issue to generate a new
Best How To :
autoload should be moved out of
You can test your composer.json file using
composer validate. Your original file returned:
./composer.json is invalid, the following errors/warnings were found:
require-dev.autoload : invalid value, must be a string containing a version constraint
the property name is required
the property description is required
No license specified, it is recommended to do so. For closed-source software you may use "proprietary" as license.