Error after migration from ZF2

Migrating ZF2 project was successful

composer install is giving below error message

[Composer\Downloader\TransportException]
Your configuration does not allow connections to http://packages.zendframework.com/packages.json. See https://getcomposer.org/doc/06-config
.md#secure-http for details.

Tried answer from this link but not working

Please do not use the packages.zendframework.com repository; we stopped updating it quite some years ago! All packages have been published on Packagist (the primary Composer repository) from the outset. You do not need to use any additional repos in order to install ZF 2 and later.