alex-kalanis / kw_modules
Selecting correct modules in KWCMS
v2.1.0
2024-05-19 10:26 UTC
Requires
- php: >=7.4.0
- ext-json: *
- ext-mbstring: *
- alex-kalanis/kw_input: >=3.0 <4
- alex-kalanis/kw_paths: >=4.0 <5
Requires (Dev)
- alex-kalanis/kw_files: >=4.0 <5
- alex-kalanis/kw_storage: >=5.0 <6
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=8.0 <=9
- psr/container: =2.0.2
- shipmonk/composer-dependency-analyser: ^1.4
Suggests
- alex-kalanis/kw_autoload: Autoloader
- alex-kalanis/kw_storage: Local storage for accessing resources
README
Modules base
Selecting which modules will run. This is the core of KWCMS. Because everything starts with modules which represent blocks of content.
PHP Installation
composer.phar require alex-kalanis/kw_modules
(Refer to Composer Documentation if you are not familiar with composer)
PHP Usage
1.) Use your autoloader (if not already done via Composer autoloader)
2.) Add some external packages with connection to the local or remote services.
3.) Connect the "\kalanis\kw_modules\Access\Factory::getProcessor" into your app and set necessary params.
4.) Extend your libraries by interfaces inside the package.
5.) Just call setting and render
Caveats
This thing is created with tree in mind. So the loaders and modules itself are targeted by arrays, not raw strings as was usual.