When you start adding your WordPress plugins to GitHub, one of the next things you’re likely going to want to do is make it easy for other developers to begin incorporating those packages into their composer.json file.
That is, they don’t have to download your plugin, include it in your project, watch for updates, or anything like that. Instead, they add the file then run:
$ composer update
…whenever they are ready to get the latest version of your work.
But simply contributing your work to GitHub is not enough. You have to submit your WordPress plugin to Packagist (of course, this works with other projects, too, but that’s outside the scope of this blog, really).
And here’s how to do it.
