I am trying to install intervention/image. After running the composer update, I get:
We dont need to do anything in composer.json
Windows
Enable fileinfo extension in php.ini
extension= php_fileinfo.dll
In Linux
1) Download and untar the package
2) Generate the extension for compiling
3) Configure the module
4) generate the install files and install it
5) Now the extension will be available under the /usr/lib64/php/modules directory. You now need to add the extension somewhere in the php configuration file. Edit /etc/php.ini and add the following: extension=fileinfo.so 6) Save the file and restart the webserver
To verify fileinfo module is enabled properly, execute:
fileinfo support => enabled
Alternate method
Just an FYI, the module can also be installed using the PECL command i.e.
Once done, just follow steps 5 and 6 mentioned above to enable it. That’s it.