You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helper to automatically load various Kirby extensions in a plugin
10
13
@@ -14,14 +17,14 @@ Helper to automatically load various Kirby extensions in a plugin
14
17
composer require bnomei/autoloader-for-kirby
15
18
```
16
19
17
-
## This package is NOT a kirby plugin
20
+
## This package is NOT a Kirby plugin
18
21
19
-
-This is a composer package because that actually makes it easier to setup and does not mess with the loading order of extensions.
20
-
- Being a package it also can be used not only for local plugins but also as a composer dependency within plugins published online.
22
+
This is a composer package because it is easier to set up and does not mess with the loading order of extensions.
23
+
- Being a package, it can also be used not only for local plugins but also as a composer dependency within plugins published online.
21
24
22
25
### Autoloading of extensions
23
26
24
-
Add the autoloader for each extension type you want once and it will register all files in subfolders correctly.
27
+
Add the autoloader for each extension type you want once, and it will correctly register all files in subfolders.
25
28
26
29
#### Supported Extensions
27
30
@@ -43,8 +46,8 @@ The following extensions can be autoloaded:
43
46
44
47
#### Notes
45
48
46
-
- Loading translations from yaml or json files is added by this package and not originally part of kirby core.
47
-
- The `classes` autoloader is very basic. Using a custom array with kirby's `load()`-helper or composers psr-4 autoloading is recommended.
49
+
- Loading translations from YAML or JSON files are added by this package and is not originally part of Kirby core.
50
+
- The `classes` autoloader is very basic. It is recommended that you use a custom array with Kirby's `load()`helper or composers psr-4 autoloading.
48
51
- The `routes` and `apiRoutes` autoloader is based on code from @tobimori and needs a file structure similar to Next.js [see examples](https://github.com/bnomei/autoloader-for-kirby/blob/main/tests/site/plugins/routastic).
49
52
- Blueprints loaded from classes need the [kirby-blueprints](https://github.com/bnomei/kirby-blueprints) plugin
This plugin works great in combination with my [Kirby CLI Tool](https://github.com/bnomei/kirby3-plopfile) which helps you to create extension files faster.
132
-
133
132
## Disclaimer
134
133
135
134
This package is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/autoloader-for-kirby/issues/new).
0 commit comments