How to fix the «The "https://repo.magento.com/packages.json" file could not be downloaded: allow_url_fopen must be enabled in php.ini» issue?

See also: