afbora/kirby-loader

Plugins loader from multiple roots for Kirby

Installs: 9 692

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 3

Forks: 2

Open Issues: 0

Type:kirby-plugin

2.2.0 2024-03-16 12:53 UTC

This package is auto-updated.

Last update: 2024-04-16 13:13:41 UTC


README

The Kirby Loader allows you to install plugins from multiple root directories. You can easily manage plug-ins by grouping them.

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' => [
        // register string paths
        '/plugins/core',
        '/plugins/payment',
        '/plugins/shipping',
        
        // register single directory
        '/theme',
        
        // register with callback
        function () {
            return option('custom.option.path');
        },
    ]
];

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.