Using composer with unpublished packages

Want to test your hashtag#php packages before you publish them on hashtag#Packagist? Or are you using hashtag#private repositories for your hashtag#packages and still want to use hashtag#Composer to manage them as hashtag#dependencies? Here is a detailed approach on how you can achieve this.