I use 5.7v Laravel and 7.2.1v PHP and composer last version, but when I like to create new project these errors appeared:
Your requirements could not be resolved to an installable set of packages. Problem 1 - Installation request for league/flysystem 1.0.47 -> satisfiable by league/flysystem[1.0.47]. - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. Problem 2 - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. - laravel/framework v5.7.9 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.47]. 0 - Installation request for laravel/framework v5.7.9 -> satisfiable by laravel/framework[v5.7.9]. To enable extensions, verify that they are enabled in your .ini files: - C:\php-7\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.`
To configure Composer for your PHP app json file specifies required packages. Verify that a composer. json file is present in the root of your git repository. Run composer install (on your local machine) to install the required packages and generate a composer.
To update Composer itself to the latest version, run the self-update command. It will replace your composer.phar with the latest version. If Composer was not installed as a PHAR, this command is not available. (This is sometimes the case when Composer was installed by an operating system package manager.)
First of all, stop the XAMPP/Wamp and then kindly remove the starting semicolon ( ;
) from your xampp\php\php.ini the following code.
;extension=fileinfo
or in windows with IIS
extension=php_fileinfo.dll
And then restart your XAMPP/Wamp.
NOTE: For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With