Skip to content
Kirby plugins loader from multiple roots
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
vendor
.gitignore
LICENSE
README.md
composer.json
config.php
index.php

README.md

Kirby Loader

With Kirby Loader you can load plugins from multiple roots. Thus, you can simplify the management of your plugins by grouping.

Installation

Installation with composer

composer require afbora/kirby-loader

Add as git submodule

git submodule add https://github.com/afbora/kirby-loader.git site/plugins/kirby-loader

Usage

<?php

return [
    'afbora.loader.roots' => [
        '/plugins/core',
        '/plugins/payment',
        '/plugins/shipping',
        '/theme', // Register single plugin
    ]
];

Options

The default values of the package are:

Option Default Values Description
afbora.loader.roots [] (array) Array with the roots

All the values can be updated in the config.php file.

You can’t perform that action at this time.