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 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

About

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

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages