We first need to push composer.json and our library code from within src/Foggyline/MP7/, into the GitHub repository. Assuming we have an empty GitHub repository, such as git@github.com:ajzele/foggyline_mp7.git, waiting for us, we can easily do so through the following few commands:
git init
git remote add origin git@github.com:ajzele/foggyline_mp7.git
git add composer.json
git add src/Foggyline/MP7/
git commit -m "Initial commit"
git push origin master
This should show up in GitHub, as follows:
![](https://static.packt-cdn.com/products/9781785882814/graphics/assets/eb2fda5b-591d-4fc8-bf81-6c8563ff01a4.png)
With the files in the GitHub repository, we can now visit the https://packagist.org page and Submit our package:
![](https://static.packt-cdn.com/products/9781785882814/graphics/assets/1ded5059-7b78-4201-bc91-5f64afdd9d8c.png)
Once the Check is done, we should be able to see a screen similar to the following one:
![](https://static.packt-cdn.com/products/9781785882814/graphics/assets/8742031c-9821-4ed1-adbb-87c03e1d08f4.png)
Once we hit the Submit button, we should be able to see a screen similar to the following one:
![](https://static.packt-cdn.com/products/9781785882814/graphics/assets/3ad27604-195a-45a1-bbfd-824051886c1e.png)
We should now be able to...