Composer installer not working

I have a plugin, which i gave a type and a installer name.
This plugin should now be installed into the plugins folder. But my plugin is installed into the vendor folder.

Is the getkirby/composer-installer not working yet? I used to use composer/installers with kirby 2 and it worked like a charm…

This is the composer file for my plugin.

Could anyone please help me?
Thanks!

  "name": "reprovinci/kirby.plugin.name",
  "description": "A description",
  "type": "kirby-plugin",
  "autoload": {
    "psr-4": {
      "Reprovinci\\Kirby\\": [
        "src/",
        "tests/"
      ]
    }
  },
  "require": {
    "monolog/monolog": "^1.23"
  },
  "extra": {
    "installer-name": "name"
  }
}

Our official getkirby/composer-installer is intended for the new Pluginkit, our new example plugin setup. The Pluginkit is currently being tested by our plugin devs in the Next community on Slack.

We will publish it on the Kirby website soon. I will let you know once it is ready. :slight_smile:

PS: The installer itself should already work, but to distinguish plugins that support the Pluginkit from those that don’t, the plugin needs to explicitly require the installer like this:

{
  ...
  "require": {
    "getkirby/composer-installer": "^1.1"
    ...
  }
  ...
}

But I recommend to wait one or two weeks or so until the Pluginkit is officially released to avoid having to make any modifications.

2 Likes

The Pluginkit is now officially released: Introducing the Pluginkit

1 Like