panlatent/form-schema

Decouple components and forms

dev-main 2025-03-14 09:08 UTC

This package is auto-updated.

Last update: 2025-03-14 09:12:42 UTC


README

Form Schema provides a way to define form fields by declaring PHP Attributes, thereby separating components and form implementations. Provides driving force for various PHP programs.

Usage

Use PHP Attribute to define form fields

class ExampleComponent
{

    #[TextInput()]
    public string $name;
}