Error:Your requirements could not be resolved to an installable set of packages.(on server)

Your PHP need some ext for run your packages.

You can install that with apt-get if you use Ubuntu and PHP 5 :

apt-get install php5-gmp 
apt-get install php5-curl

If you use PHP 7:

apt-get install php7.0-gmp 
apt-get install php-curl

and etc...

After that restart your web service then it will work.


First, check if composer is installed by doing.

composer -v

If it is installed, do the following sequence. This worked for me:

sudo apt-get install php7.2-zip
sudo apt-get install php-mbstring -y
sudo apt-get install php-xml -y

Then finally do this.

composer install

When I went to create a laravel project, I got this problem.

After googling, I got this solution.

I followed these steps:

Step 1: sudo apt-get install -y php7.2-gd

Step 2: sudo apt-get install php7.2-intl

Step 3: sudo apt-get install php7.2-xsl

Step 4: sudo apt-get install php7.2-mbstring

After following these steps just restart the server again.

And then create a new laravel project by typing: "composer create-project laravel/laravel projectname" in your terminal.