how to install mcrypt in xampp on windows?
My PHP Version 7.0.5 and xampp pack have not mcrypt extension so how can i install mcrypt on xampp ?
The recent versions of XAMPP for Windows runs PHP 7.x which are NOT compatible with mbcrypt. If you have a package like Laravel that requires mbcrypt, you will need to install an older version of XAMPP. OR, you can run XAMPP with multiple versions of PHP by downloading a PHP package from Windows.PHP.net, installing it in your XAMPP folder, and configuring php.ini and httpd.conf to use the correct version of PHP for your site.
Right from the PHP Docs: PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.
http://php.net/manual/en/mcrypt.requirements.php
But if you really want to download it, just go to the mcrypt sourceforge page
For windows
- Create a new folder like new-project.
- past this command in your windows command "composer create-project laravel/laravel new-project 4.2.*"
来源:https://stackoverflow.com/questions/37522384/how-to-install-mcrypt-extension-in-xampp