Enable PHP extensions on Windows

I wanted to create Symfony project on Windows 10, but got error:

 The openssl extension is required for SSL/TLS protection but is not available. If you can not en
  able the openssl extension, you can disable this error, at your own risk, by setting the 'disabl
  e-tls' option to true.

Then I enabled the extension by removing the ; in front of this line: ;extension=openssl so it becomes extension=openssl, but it still didn’t work.

Finaly I’ve found answer on Stack Overflow to also setup folder path with php extensions on Windows. We need to remove ; here also:

; Directory in which the loadable extensions (modules) reside.
; https://php.net/extension-dir
;extension_dir = "./"
; On windows:
;extension_dir = "ext"

so the line becomes:

extension_dir = "ext"