Variant "Setup with Composer dependencies"
This is a boilerplate for a Kirby plugin that can be installed via all three supported installation methods.
You can find a list of Pluginkit variants on the master
branch.
- Fork this repository
- Change the plugin name and description in the
composer.json
- Change the plugin name in the
index.php
- Change the license if you don't want to publish under MIT
- Add your plugin code to the
index.php
and thesrc
directory - Require Composer dependencies with
composer require
- Update this
README
with instructions for your plugin
We have a tutorial on how to build your own plugin based on the Pluginkit in the Kirby documentation.
What follows is an example README for your plugin.
Download and copy this repository to /site/plugins/{{ plugin-name }}
.
git submodule add https://github.com/{{ your-name }}/{{ plugin-name }}.git site/plugins/{{ plugin-name }}
composer require {{ your-name }}/{{ plugin-name }}
Additional instructions on how to configure the plugin (e.g. blueprint setup, config options, etc.)
Document the options and APIs that this plugin offers
Add instructions on how to help working on the plugin (e.g. npm setup, Composer dev dependencies, etc.)
MIT