Aithne
Menu (opens mobile navigation)

PPIL client — PHP

aithne/ppil-client — a Composer package (PSR-4) mirroring the verified @aithne/ppil-client AVP contract.

SDK overview

Install

# Composer package (illustrative)
composer require aithne/ppil-client

// PHP 8.0+, ext-curl, ext-json
use Aithne\\PPIL\\PPILClient;
Example only — the registry publication path is being confirmed with the AVS engineering / CTO track. The tested client ships from the AVS workspace until then.

Surface

$client->issue(['attestationRef'=>..., 'correlationId'=>...])
$client->verify(['pptToken'=>..., 'otpAlias'=>..., 'requiredCategories'=>...])
$client->revoke(['pptId'=>...])
$client->getVerificationModal(['ppilScope'=>'age'])

What it does

  • Age-verification middleware that 302s unverified HTML users to the wallet dialog and returns 403 {code} for API callers.
  • Merchant hooks (authenticatePIC, getSignedPIC, session + correlation) enforced at registration.
  • CTS callback route wiring with idempotent correlation handling.
  • Config loaded from a JSON file or via dependency injection; maskSensitive() on every diagnostic path.
  • Verified by an 18-case contract test suite (external stub server, no real data).
No name. No email. No phone. No account.  ·  Identity stays in the wallet →