Skip to content

symfinity/ui-action

Repository files navigation

UI Action

Native HTTP action semantics validation (navigate, submit, delete, download)

PHP Version
CI
Release Downloads License

Note

Read-only mirror. See CONTRIBUTING.md.

Features

  • Native HTTP intentsnavigate, submit, delete, download backed enum
  • Markup validationNativeActionRules checks 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

Requirements

  • PHP 8.2 or higher

Support

License

MIT

About

Native HTTP action semantics validation (navigate, submit, delete, download)

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages