Note
Read-only mirror. See CONTRIBUTING.md for how to propose changes.
- 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
composer require symfinity/ui-actionSee Installation for requirements and a smoke test.
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.
- 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
- PHP 8.2 or higher