alex-kalanis / kw_menu
Menu manager and processor in KWCMS
Requires
- php: >=7.4.0
- ext-mbstring: *
- alex-kalanis/kw_paths: >=4.0 <5
Requires (Dev)
- alex-kalanis/kw_files: >=4.0 <5
- alex-kalanis/kw_storage: >=5.0 <6
- alex-kalanis/kw_tree: >=3.0 <4
- 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_files: Accessing stored entries as files on some volume
- alex-kalanis/kw_storage: Local storage for accessing resources
- alex-kalanis/kw_tree: Processing tree for accessing resources
README
Mapping menu from different sources and make the tree necessary to process everything. This version supports as entries files on volume, in storage and from tree package. You can also make your own implementation of IEntriesSource and IMetaSource to satisfy selection of available entries.
PHP Installation
composer.phar require alex-kalanis/kw_menu
(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_menu\MetaProcessor" into your app. Extends it for setting your case.
4.) Extend your libraries by interfaces inside the package.
5.) Just call setting and render