Composer and Git – How to set stability

I’m new to GIT and reasonably new composer. Right now I am trying to pull a dependancy from a GIT repository I created. The reason for this is the site I am building is wordpress and this repository holds a plugin which is not currently available online. The issue is I get this error message:

Your requirements could not be resolved to an installable set of packages.

I know this is due to the default stability in composer being stable and my repository not being recognised as a stable version. I would like to keep the stability in composer as it is, and change the GIT repository so that it is recognised as a stable version. There has been one commit to the repository, this is the inital upload of the plugin, plus I have given it a tag with a version number, which is currently V5.2.6.

For extra reference here is my current composer file:

"name": "install/wordpress",
"description": "Wordpress site.",
"repositories": [
  "type": "package",
  "package": {
    "name": "plugins/custom-plugin",
    "version": "master",
    "type": "wordpress-plugin",
    "dist": {
      "type": "git",
      "url": "",
      "reference": "master"

"extra": {
"wordpress-install-dir": "wp",
"installer-paths": {
  "web/plugins/{$name}/": ["plugins/custom-plugin"]

"require": {
"php": ">=5.4",
"composer/installers": "~1.0",
"johnpbloch/wordpress": "~4.2.",
"plugins/custom-plugin": "5.2.6"

(I have modified the above to remove secure information) Thank you in advance for any feedback 🙂

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.