alex-kalanis / kw_groups
Groups for rights determination in KWCMS
v3.0.0
2024-03-31 16:01 UTC
Requires
- php: >=7.4.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: >=8.0 <=9
- shipmonk/composer-dependency-analyser: ^1.4
This package is auto-updated.
Last update: 2024-12-01 00:12:06 UTC
README
Groups inside the kw_* project.
PHP Installation
composer.phar require alex-kalanis/kw_groups
(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_groups\Processor\Basic" into your app. Extends it for setting your case.
4.) Extend your libraries by interfaces inside the package.
5.) Just call method canAccess() and enjoy.
Basic Rules
- Can access
- Group ID equals current one.
- Group ID is somewhere in the tree of parents.
The group ID is usually string, although it can be integer converted to string before method call.