Adding your Composer package to Packagist
To make it easier to distribute our packages, we should submit them to the website packagist.org. In this recipe, we'll see how to set up our package on GitHub and add it to Packagist.
Getting ready
For this recipe, we'll need to have completed the Creating a Composer package in Laravel recipe, and we'll also need an active GitHub account.
How to do it...
To complete this recipe, follow these steps:
In the command line, move to the
workbench/matula/vimeolist
directory and set up ourgit
repository as follows:git init git add -A git commit –m 'First Package commit'
Create a new GitHub repository at https://github.com/new and give it the name
vimeolist
.Add our package to GitHub:
git remote add origin git@github.com:{username}/vimeolist.git git push –u origin master
Go to https://packagist.org/login/ and log in using your GitHub account.
Click on the green Submit Package button shown in the following screenshot:
In the Repository URL text field, add the Git...