afbora / kirby-loader
Plugins loader from multiple roots for Kirby
Fund package maintenance!
a.paddle.com/v2/click/1129/52467?link=1170
Installs: 13 810
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 2
Open Issues: 0
Type:kirby-plugin
Requires
- php: ^7.4|^8.0
- getkirby/composer-installer: ^1.2
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.