alex-kalanis / kw_table
Table engine for KWCMS
Requires
- php: >=7.4.0
- ext-mbstring: *
- alex-kalanis/kw_address_handler: >=3.0 <4
- alex-kalanis/kw_connect: >=4.0 <5
- alex-kalanis/kw_forms: >=3.0 <4
- alex-kalanis/kw_input: >=3.0 <4
- alex-kalanis/kw_paging: >=2.0 <3
- alex-kalanis/kw_templates: >=3.0 <4
- alex-kalanis/pager: >=2.0 <3
Requires (Dev)
- ext-json: *
- alex-kalanis/kw_clipr: >=6.0 <7
- friendsofphp/php-cs-fixer: ^3.0
- jenssegers/blade: ~1.4
- latte/latte: >=2.0 <4
- nette/forms: ~3.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=8.0 <=9
- shipmonk/composer-dependency-analyser: ^1.4
- twig/twig: ~3.4
Suggests
- alex-kalanis/kw_clipr: CLI Processor
- alex-kalanis/kw_mapper: Mapper for accessing resources in KWCMS
README
Table engine for managing entries from datasources. Can use many input and output styles.
PHP Installation
composer.phar require alex-kalanis/kw_table
(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_table\core\Table" into your app. Extends it for setting your case.
4.) Extend your libraries by interfaces inside the package.
5.) Just call setting and render
Basics
At first you want to use \kalanis\kw_table\kw\Helper
, because compiling the whole table's
dependencies is really mindblowing. Then you can start to experiment with changing classes.
When you have enough experiences, then you can make your own extensions of provided classes.
Especially filtering forms are really complicated - so try them first as normal, external
libraries for generating forms. Used mapper is also something difficult to grasp.
On the other side - it's possible with a few changes to render the whole table into CLI or Json. As it's shown in Helper. Cli version uses kw_clipr/PrettyTable, so the result is in the Markdown.