1. Go to this page and download the library: Download padosoft/laravel-iam-agents 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/ */
padosoft / laravel-iam-agents example snippets
$decision = app(DelegatedAuthorizationEngine::class)->checkDelegated(
subject: new SubjectRef('user', $sub),
chain: DelegationChain::fromTokenClaims($claims),
query: ['permission' => 'orders.read', 'delegation_grant_id' => $claims['pds_dgr']],
);
// allowed ⟺ user allows AND agent allows AND grant still active.
// The decision cites both identities — auditors replay each layer separately.
bash
POST /iam/me/delegations/consent-challenge {agent_id, scopes, ttl_seconds, purpose}
POST /iam/me/delegations {…same params…, challenge_id, verification}
http
POST /api/iam/v1/delegation-freezes
{ "scope": "global", "reason": "Anomalous tool calls from agt_01J…" }
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.