These are chat archives for composer/composer

Oct 2015
Jeremy "Jay" Zahner
Oct 07 2015 14:46

Hi there! I have a quite complex request:

For a project i use a MVC Wordpres Plugin Framework ( with wich i am having the following situation:

Project is "live" on a staging server, including the plugin.
Plugin is still under development but locally linked as a symlink
Deployment happens via Capistrano
My Problem: I need to add the plugin and its repo in the main projects composer.json so it gets deployed right onto the staging server. On the other hand i dont want composer to overwrite my local symlink every time i run composer update.

I managed to install the plugin locally by just adding a "path" repo. But now i got two more issues:

  1. I don't want the "Path" repo to be active on the remote server.
  2. If i use "Path", i can not set the type, wich should be "wordpress-plugin" so it gets installed into the right directory.

Is there a easy way for this? I assume that im not the first person having this issue.

Thanks for you best practices!

  "repositories": [
      "type": "path",
      "url": "/Users/me/Workflow/misc/plugin"
  "require": {
    "php": ">=5.4",
    "composer/installers": "~1.0.12",
    "vlucas/phpdotenv": "^2.0.1",
    "johnpbloch/wordpress": "4.3.1",
    "jshmrtn/plugin": "dev-master"
  "extra": {
    "installer-paths": {
      "web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
      "web/app/plugins/{$name}/": ["type:wordpress-plugin"],
      "web/app/themes/{$name}/": ["type:wordpress-theme"]
    "wordpress-install-dir": "web/wp"