symfinity/ui-action
Composer 安装命令:
composer require symfinity/ui-action
包简介
Symfinity UI Action — native HTTP action semantics validation (navigate, submit, delete, download)
README 文档
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
Support
License
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-13