Search by

opxcore / authorization-interface

opxcore

OpxCore authorization interface.

Package info

github.com/opxcore/authorization-interface

pkg:composer/opxcore/authorization-interface

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.2 2020-07-02 08:23 UTC

This package is auto-updated.

Last update: 2026-08-29 02:18:57 UTC


README

AuthorizationInterface is abstraction for authorization checks. Checker must return AuthorizationResponse.

$actions=['update'];

$response = AuthorizationInterface::check([...$permissions], $actions);

if($response->can('update') {
    // Do some update actions
}