Search by

authfly / sdk-php

alexy-os

Authfly adapter: JSON API client and OpenID Connect relying party (Stalwart)

Package info

github.com/authfly/sdk-php

pkg:composer/authfly/sdk-php

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-10-24 09:17 UTC

This package is auto-updated.

Last update: 2026-10-24 11:38:45 UTC


README

Read-only mirror: authfly/sdk-php is a read-only mirror of sdk/php; develop in authfly/authfly (tools/split.sh).

No dependencies. require 'src/Authfly.php'; or composer require authfly/sdk-php.

use Authfly\{Authfly, AuthflyApi};

$api = new AuthflyApi('http://localhost:4000');
$session = $api->signIn('alice@example.com', 'a long password'); // ['token' => ..., 'user' => ...]

$oidc = new Authfly('http://localhost:4000', 'http://localhost:8080', 'my-app', 'http://localhost:8000/callback');
[$url, $pending] = $oidc->authorizeUrl();       // redirect; keep $pending in the session
$result = $oidc->callback($_GET, $pending);       // ['user' => claims, 'tokens' => ...]