A repository is a package source. It's a list of packages/versions. Composer will look in all your repositories to find the packages your project requires. Concepts · Types · Composer · VCS
1. Create a public repository on GitHub. 2. Create composer.json at the top level of the repository. With `composer init` you can make a quick template.
I have a custom package that is not uploaded on github or packagist and I need to add it to a Laravel 5.1 project. This is my package folder structure.