symfinity / ui-action
Native HTTP action semantics validation (navigate, submit, delete, download)
v0.1.1
2026-06-25 05:24 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-25 05:37:55 UTC
README
UI Action
Native HTTP action semantics validation (navigate, submit, delete, download)
Note
Read-only mirror. See CONTRIBUTING.md for how to propose changes.
Features
- Native HTTP intents — navigate, submit, delete, and download
- Markup validation — checks tag, attributes, and form context without parsing HTML
- Stable violation codes — machine-readable failures for PHPUnit and CI
- Zero framework coupling — pure PHP library; optional Symfony autowiring
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
- Usage — validate intents in app code and PHPUnit
- Upgrade — version migration
Requirements
- PHP 8.2 or higher