Despite all the warnings and suggestions if you still need to make it work, try this:
- Locate your PHP directory. Usually it is located on C:\Program
Files\PHP\v7.2
- Then go to this url:
http://pecl.php.net/package/mcrypt/1.0.3/windows
- Download the package that better meets your requirements. For example if
you are
using FastCGI and have a 64 bit Windows installation pick
7.2 Non Thread Safe (NTS) x64
- Open the zip and copy php_mcrypt.dll file to the C:\Program
Files\PHP\v7.2\ext directory.
- Edit the php.ini file and add this to the Dynamic extensions
section:
extension=php_mcrypt.dll
- Save php.ini and restart your web server.
Hope it helps.