O'Reilly logo

Mastering PHP 7 by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Distributing your package

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 initgit remote add origin git@github.com:ajzele/foggyline_mp7.gitgit add composer.jsongit 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required