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 [email protected]:ajzele/foggyline_mp7.git
, waiting for us, we can easily do so through the following few commands:
git init git remote add origin [email protected]: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:
With the files in the GitHub repository, we can now visit the https://packagist.org page and Submit
our package:
Once the Check
is done, we should be able to see a screen similar to the following one:
Once we hit the Submit
button, we should be able to see a screen similar to the following one:
We should now be able to use the foggyline/mp7
package within any project just by running the following console command:
composer require foggyline/mp7:dev-master