Kirby 2.4 with composer

What do I need to do to install Kirby with composer?

My composer.json should include

  "require": {
    "getkirby/kirby": "2.4.*",
    "getkirby/panel": "2.4.*"

but how do I have to modify the index.php to make it work?

Kirby does not support being installed inside the vendor directory that Composer uses. We have experimented with it, but in the end it didn’t work reliably to support both.

You can however configure Composer to install to the normal paths. With 2.4, you can of course omit the repo information.

This works now:

  "name": "your-company/your-project",
  "require": {
    "mnsami/composer-custom-directory-installer": "1.1.*",
    "getkirby/kirby": "^2.4"
  "extra": {
    "installer-paths": {
      "./kirby": ["getkirby/kirby"],
      "./kirby/toolkit": ["getkirby/toolkit"],
      "./panel": ["getkirby/panel"]

It should actually be in the release unless composer cached the very first version, which was out for about 15 minutes.

Thats exactly what it did :wink:

Yikes, I should have thought about it. I just updated it manually. Try to run composer update again and let me know if this will fix it.

Works now - thank you :slight_smile: