Kirby's Plain Kit with Composer
A port of Kirby's Plain Kit to work with Composer.
Composer is the excellent package/dependency manager for PHP.
This project helps you quickly spin up a Kirby site, installing kirby, toolkit, and the panel with composer.
This project uses a customized folder setup.
project/
.gitignore
composer.json
package.json
public/
.htaccess
index.php
site.php
content/
assets/
avatars/
thumbs/
# Composer installs these:
kirby/
toolkit/
panel/
site/
accounts/
blueprints/
cache/
config/
controllers/
models/
snippets/
templates/Feel free to change the directory structure, but make sure to:
- adjust your
installer-pathsincomposer.json - adjust your paths in
.gitignore - adjust your path to
site/inpublic/site.php - adjust your path in the
servescript inpackage.json
Make sure you have composer installed.
git clone https://github.com/jevets/kirby-composer-plainkit my-site
cd my-site
composer installInstall Node.js and npm.
I've included a simple server script in package.json.
npm run serve
If you've changed the directory structure, make sure to update the serve script in package.json.
"scripts": {
"serve": "php -S localhost:9000 -t path/to/my/document/root/"
}