primix / forms
Form builder for Primix admin panel framework
0.1.8
2026-03-16 03:36 UTC
Requires
- php: ^8.2
- primix/actions: 0.1.8
- primix/support: 0.1.8
README
primix/forms is an official package in the Primix ecosystem.
It is part of the Primix framework and lets you build composable forms with fields and layouts, keeping panel UI and behavior consistent.
What it is for
- Define declarative forms for create, edit, and settings flows.
- Combine fields and layouts into reusable schemas.
- Integrate naturally with Primix panel validation and rendering.
Installation
Recommended for full Primix projects:
composer require primix/primix
Standalone module installation:
composer require primix/forms
Quick example
use Primix\Forms\Form; use Primix\Forms\Components\Fields\TextInput; use Primix\Forms\Components\Fields\Select; $form = Form::make() ->schema([ TextInput::make('name')->label('Name')->required(), Select::make('status')->options([ 'draft' => 'Draft', 'published' => 'Published', ]), ]);