PHP code example of kumwe / access-control
1. Go to this page and download the library: Download kumwe/access-control library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kumwe / access-control example snippets
umwe\Access\AuthorizationDecision;
use Kumwe\Access\DecisionCombiner;
use Kumwe\Access\DecisionState;
$result = (new DecisionCombiner())->combine([
new AuthorizationDecision(DecisionState::Allow, 'example.grants.v1', 'matching_grant'),
new AuthorizationDecision(DecisionState::StepUp, 'example.assurance.v1', 'fresh_proof_