like most of them, you need to uncomment the openssl extension in php.ini.
I also struggled with the same, and I realized that php was looking for extensions in "c: \ php" , but mine was an xampp installation. Specifying extension_dir in php.ini to fix the php extension path; in my case, "c: \ xampp \ php.7 \ ext" solved the problem.
Hope someone helps.
source share