When i tried to install Yii2 using composer
I had this exception
Script yii\composer\Installer::postCreateProject handling the post-create-project-cmd event terminated with an exception
[Exception]
The mcrypt PHP extension is required by Yii2.
how can i solve this ?