symfinity/ui-action

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

Maintainers

Package info

github.com/symfinity/ui-action

pkg:composer/symfinity/ui-action

Transparency log

Statistics

Installs: 227

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

v0.1.1 2026-06-25 05:24 UTC

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)

PHP Version
CI
Release Downloads License

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

Requirements

  • PHP 8.2 or higher

Support

License

MIT