I'am trying to install Drupal 7 using composer. Before that I tried to install drupal 8 using composer and it works perfectly.
Now when I try to install D7 using same method it is still installing D8 instead of D7. I set up package repository as mentioned here but still installing D8 only. I tried
$ composer clearcache also but no difference. Please help.