wp-posts-to-posts icon indicating copy to clipboard operation
wp-posts-to-posts copied to clipboard

Can't instal via composer

Open padalec opened this issue 10 years ago • 2 comments

Hi there, thank you for create this amazing plugin. I have some problems when I try install via composer I got this errors: Problem 1 - Installation request for scribu/posts-to-posts dev-master -> satisfiable by scribu/posts-to-posts[dev-master]. - scribu/posts-to-posts dev-master requires scribu/lib-posts-to-posts dev-master -> no matching package found.

This my composer.json file:

"repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/scribu/wp-posts-to-posts"
    }
  ],
  "require": {
    "php": ">=5.3",
    "scribu/posts-to-posts": "dev-master"
  },

padalec avatar Sep 23 '15 07:09 padalec

You probably need to set "minimum-stability": "dev", like here.

scribu avatar Sep 23 '15 14:09 scribu

this way work's fine :

{
    "type": "package",
    "package": {
        "name": "scribu/wp-posts-to-posts",
        "type": "wordpress-plugin",
        "version": "1.6.4",
        "minimum-stability": "dev",
        "source": {
            "url": "https://github.com/scribu/wp-posts-to-posts.git",
            "type": "git",
            "reference": "1.6.4"
        }
    }
}

Ouups sorry, this way seem's better :

"require": {
  "wpackagist-plugin/posts-to-posts": "1.6.x"
}

Cezarion avatar Sep 29 '15 10:09 Cezarion