[Solution] Composer: openssl and curl extensions errors

How to resolve openssl and curl errors when installing a package in Composer.