dotkernel/dot-controller-plugin-authorization

DotKernel authorization controller plugin

Maintainers

👁 dotkernel

Package info

github.com/dotkernel/dot-controller-plugin-authorization

pkg:composer/dotkernel/dot-controller-plugin-authorization

Statistics

Installs: 2 454

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 0

2.9.2 2024-03-25 13:49 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT d86a7414fa83b9a4f2b23caf6bdffb3a04686a6e

  • DotKernel Team <team.woop@dotkernel.com>

This package is auto-updated.

Last update: 2026-06-15 14:01:45 UTC


README

Caution

Security-Only Maintenance Mode

This package is considered feature-complete, and is now in security-only maintenance mode.

dot-controller-plugin-authorization

Authorization controller plugin

👁 OSS Lifecycle
👁 GitHub license
👁 PHP from Packagist (specify version)

Installation

Run the following command

$ composer require dotkernel/dot-controller-plugin-authorization

This will also install packages dotkernel/dot-controller and dotkernel/dot-authorization as dependencies. Next, enable the module by merging the ConfigProvider to your application's configuration.

Usage

In any controller, you can access this plugin by calling

$this->authorization()->...

This plugin defines one method, as a proxy to the registered authorization service

$this->authorization()->isGranted($permission, array $roles = [], $context = null);