Error installing illuminate / html

I understand the laravel framework. In the console, I write:

composer require "illuminate/html"

As a result, here's what the console writes:

Using version ~5.0 for illuminate/html
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
- Installation request for laravel/framework == 5.0.16.0 -> satisfiable by laravel/framework[v5.0.16].


Installation failed, reverting ./composer.json to its original content.
Author: neek, 2015-04-02

3 answers

Laravel requires the PHP extension mcrypt.

How to install in Ubuntu:

apt-get install php5-mcrypt
mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/
php5enmod mcrypt
service apache2 restart

For other systems, see manual

 2
Author: Nayjest, 2015-04-07 11:48:41

Need to update composer:
composer self-update

 0
Author: Smagul Zhanibek, 2015-04-19 08:17:23

You need to delete the cache folder in the hamster:

  cd ~/ 
  rm -rf ./composer/cache 

And run the command to update composer:

  composer global update 
 -1
Author: Yura Narozhnyi, 2017-07-26 21:34:24