Pages

Showing posts with label composer. Show all posts
Showing posts with label composer. Show all posts

Sunday, November 19, 2017

Setting up a Packagist PHP library using GitHub / Composer

Today I setup a new packagist entry for WaryWay's trait library. It was much easier then I expected. I have previously setup composer packages locally. This time, it wasn't much different. I build out the composer.json. Set the name. Then went ahead and tagged a semantic version. After I had all this in place and pushed up to GitHub, it was a simple matter to publish on packagist. 

Here are the exact steps:

  1. Follow the documentation on https://packagist.org/packages/submit
  2. Add the integration / services setting in github (See example1).
  3. Once setup with your token, click the 'test' button to let packagist know it is integrated.

Example 1