In parallel withI think we need to start thinking about how we're going to push Drupal 8 contrib modules to packagist. After a little research into this it seems we simply need a node add/update hook to push projects and project releases to packagist.
Packagist has an API but it only handles updates. Therefore we will need to submit a pull request to packagist to add a create endpoint. This has already had a small amount of discussion with the packagist maintainers, who said:
Anyway I guess we can just add API-token support to the package submit URL, or just add a new endpoint, shouldn't be too hard.
There are a few items I would like to note:
- Drupal modules via composer is already possible via https://packagist.drupal-composer.org/ but this has a number of issues:
-- Another Drupalism ie. yet another thing people new to drupal need to work with.
-- Not something that large scale drupal users may want to depend on
- Manually adding drupal modules to packagist under the drupal namespace is not possible unless you are currently a maintainer. Maintainers look to be people who added a module under that namespace before May 7th when packagist pushed a code change to lock down namespaces.