Sahand Hosseinzadeh
Sahand Hosseinzadeh

Reputation: 33

How to install my package in Laravel 5.8? "Your requirements could not be resolved to an installable set of packages."

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

Answers (4)

Toni Osipov
Toni Osipov

Reputation: 1

Use:

sudo apt-get install php-xml

It helped me!

Upvotes: 0

Alienware
Alienware

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

Ricardo Uribe Garcia
Ricardo Uribe Garcia

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

Mohammad Hosseini
Mohammad Hosseini

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

Related Questions