switon/authz

Authorization and policy enforcement for Switon Framework

Maintainers

Package info

github.com/switon-php/authz

Documentation

pkg:composer/switon/authz

Statistics

Installs: 4

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-05-10 04:01 UTC

This package is auto-updated.

Last update: 2026-05-10 04:10:46 UTC


README

Authorization and policy enforcement for Switon Framework.

Installation

composer require switon/authz

Requirements: PHP 8.3+

Quick Start

namespace App\Controller;

use Switon\Authorizing\Attribute\Authorize;

#[Authorize(Authorize::AUTHENTICATED)]
class ProfileController
{
    public function indexAction(): array
    {
        return ['ok' => true];
    }
}

Docs: https://docs.switon.dev/latest/authz

License

MIT.