Nothing to do with your composer.json.
You need to install & enable FileInfo PHP extension, which is installed by default starting with PHP 5.3.0. Versions prior to 5.3+ may use the discontinued PECL extension.
To enable FileInfo extension, you need to edit your php.ini and change a single line.
-
Locate the line:
;extension=php_fileinfo.dll
-
Remove the starting comment:
extension=php_fileinfo.dll
To find out where your php.ini is located, you can run the following command from a terminal:
$ php --ini
and search for “Loaded Configuration File“.
Please note that the PHP CLI can load a different php.ini file than the web, so don’t rely on the path provided in phpinfo()
. Run the command specified above in a terminal to find out the file loaded by PHP CLI.