afbora/kirby-loader

Plugins loader from multiple roots for Kirby

Installs: 14 177

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

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-11-16 14:21:56 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:

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