Search by

authfly / latte

alexy-os

Authfly widgets for Latte on UI8Kit 3 primitives (CLI 3.2.1, registry 3.2.0).

v0.4.0 2026-10-24 09:16 UTC

This package is auto-updated.

Last update: 2026-10-24 11:40:04 UTC


README

Read-only mirror: authfly/latte is a read-only mirror of packages/ui/latte; develop in authfly/authkit (tools/split.sh).

Composer package authfly/latte. Primitives from npx ui8kit@3 (CLI 3.2.1, registry 3.2.0):

npx ui8kit@3 init --yes --framework latte --runtime latte --dir . --registry-version 3.2.0
npx ui8kit@3 add --all --runtime latte --registry-version 3.2.0
composer require "latte/latte:^3.0" && composer dump-autoload

ui/ (templates) and runtime/ (UI8Kit\Latte\*) are CLI-owned — never edit; npx ui8kit@3 check. Authfly layer: src/Skin.php + src/AuthflyExtension.php (af* functions), authfly/components.latte ({define} blocks: card, stack, group, form, hidden, title, alert, badge, iconBadge, field, icon, head, messages), blocks/authfly-*.latte (same $p props as the React widgets).

$latte->addExtension(new Authfly\Latte\AuthflyExtension());
echo $latte->renderToString('.../blocks/authfly-sign-in.latte', ['p' => $props]);

Text is passed via props and escaped; children Html is only built by the define blocks. Tests: php tests/widgets_test.php; parity HTML: php tools/render.php ../react/tests/states.json /tmp/out.