symfinity / ui-action
Symfinity UI Action — native HTTP action semantics validation (navigate, submit, delete, download)
v0.1.0
2026-06-13 23:06 UTC
Requires
- php: >=8.2
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5 || ^11.0
This package is auto-updated.
Last update: 2026-06-13 23:12:41 UTC
README
UI Action
Native HTTP action semantics validation (navigate, submit, delete, download)
Note
Read-only mirror. See CONTRIBUTING.md.
Features
- Native HTTP intents —
navigate,submit,delete,downloadbacked enum - Markup validation —
NativeActionRuleschecks tag, attributes, and form context without parsing HTML - Stable violation codes — machine-readable failures for PHPUnit and CI
- Zero Symfony runtime — pure PHP library; optional autowire in Symfony apps
- UX Blocks test hook — component packages assert DOM semantics in dev/test
Installation
composer require symfinity/ui-action
See Installation for requirements and a smoke test.
Quick Start
use Symfinity\UiAction\ActionIntent; use Symfinity\UiAction\ActionMarkupContext; use Symfinity\UiAction\NativeActionRules; $rules = new NativeActionRules(); $result = $rules->validate( ActionIntent::Navigate, new ActionMarkupContext('a', ['href' => '/dashboard']), );
See Quick start for submit, delete, download examples and violation handling.
Documentation
- Quick start — validate intents in minutes
- Installation — Composer install and smoke test
- Configuration — programmatic use and Symfony wiring
- Native action semantics — HTML shape per intent
- Validation API — types and violation codes
- UX Blocks integration — PHPUnit in component packages
- Upgrade — first release notes
Requirements
- PHP 8.2 or higher