In order for composer to be able to pick up the plugins and themes we create, we want them to be published in a composer registry.

We are using packagist.org to publish our own plugins/themes.

Prerequisites:

a) The files of the plugin/theme must be uploaded on a public repository on github

b) A valid composer.json file must exist in the plugin

c) The person adding it must have an account with packagist

The following process describes it.

  1. Open and login to packagist.org
  2. Click “submit” (top right)
  3. Give your repository url (the github url for that repository)
  4. Click “check”
  5. If your composer.json is valid, then packagist will tell you what package name it found in the composer.json and will give you the ability to submit it. Else it will tell you what went wrong, in which case you will have to correct the errors and recheck.
  6. Click “Submit”
  7. If you get a message about “This package is not auto-updated. Please set up the GitHub Service Hook for Packagist so that it gets updated whenever you push!” then follow the instructions
  8. Submit a test code git commit in the repository, wait a minute, and then refresh the packagist page for that plugin, to see if the message has dissapeared. If the message has dissapeared, it means that it was automatically updated. Else you need to check if you have done something wrong.
  9. Add as additional mainteners the following accounts:
    1. kkokkoro
    2. kirdia
    3. comzeradd

Note: Those accounts belong to Konstantinos Kokkorogiannis, Kyriakos Diamandis, Nikos Roussos respectively and we are adding all three to ensure that we will not find ourselves in a situation where we cannot maintain a package because someone is not available.

 

 


Links & Resources