https://github.com/afbora/kirby-loader
Kirby plugins loader from multiple roots
https://github.com/afbora/kirby-loader
kirby kirby-cms kirby-extension kirby-plugin kirby3 kirby3-plugin kirby4 kirby4-plugin kirby5 kirby5-plugin loader
Last synced: about 1 year ago
JSON representation
Kirby plugins loader from multiple roots
- Host: GitHub
- URL: https://github.com/afbora/kirby-loader
- Owner: afbora
- License: mit
- Created: 2019-07-29T17:25:33.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T13:20:37.000Z (over 1 year ago)
- Last Synced: 2025-03-25T09:47:49.638Z (about 1 year ago)
- Topics: kirby, kirby-cms, kirby-extension, kirby-plugin, kirby3, kirby3-plugin, kirby4, kirby4-plugin, kirby5, kirby5-plugin, loader
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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
```ssh
composer require afbora/kirby-loader
```
### Add as git submodule
```ssh
git submodule add https://github.com/afbora/kirby-loader.git site/plugins/kirby-loader
```
## Usage
```php
[
// 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.