Skip to content

afbora/kirby-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Loader

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.