Reputation: 33
I entered composer require larabook/gateway
but the package was not be installed and I received the following error.
Your requirements could not be resolved to an installable set of packages.
Upvotes: 2
Views: 2033
Reputation: 47
I had this same issue when I was trying to create a Laravel project in PHP 7.4.
From your PHP location, go to php.ini
, double click on it and look for extension=php_fileinfo
. The latest version of PHP does not come with .dll
, so if it is not there don't worry about it. After that, close the notepad, click on save and restart your cmd.
if you are using XAMPP, on the same line that runs Apache on port 80, 443, go to config click on it, navigate to PHP(php.ini) and carry out the same step. Once done, close the notepad file and restart. It should work fine.
Upvotes: 1
Reputation: 31
If C:\php\php.ini
is your .ini
file, then open it
Find this line
;extension=php_fileinfo.dll
and change it to this
extension=php_fileinfo.dll
Upvotes: 3
Reputation: 1807
first run
composer update
then removing the semicolon from the line extension=php_fileinfo.dll of php.ini file
and rerun the
composer require larabook/gateway
Upvotes: 0