PHPackages                             xaviworks/modular-schema-ui - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. xaviworks/modular-schema-ui

ActiveLibrary

xaviworks/modular-schema-ui
===========================

A frontend-neutral modular schema-driven UI toolkit for Laravel with optional Blade, React, Vue, and Livewire adapters.

v0.2.1(today)01↑2900%MITPHPPHP ^8.3CI passing

Since Jul 23Pushed todayCompare

[ Source](https://github.com/xaviworks/xaviworks-modular-schema-ui)[ Packagist](https://packagist.org/packages/xaviworks/modular-schema-ui)[ RSS](/packages/xaviworks-modular-schema-ui/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (10)Versions (4)Used By (0)

XaviWorks Modular Schema UI
===========================

[](#xaviworks-modular-schema-ui)

Frontend-neutral modular forms and tables for Laravel applications.

Define fields, columns, filters, sorting, searching, and pagination once in Laravel. Render the resulting payload with Blade, React/Inertia, Vue/Inertia, Livewire, or your own frontend.

Maintained by Junn Xavier Adalid under the XaviWorks developer name.

Status
------

[](#status)

This package is currently in active development. The shared Laravel schema API and Blade adapter are available, and the installer includes starter adapters for React, Vue, and Livewire.

Installation
------------

[](#installation)

Install the package:

```
composer require xaviworks/laravel-modular-schema-ui
php artisan modular:install --frontend=react
```

Supported adapters are `blade`, `react`, `vue`, and `livewire`. If no adapter is specified, the installer detects React/Inertia, Vue/Inertia, or Livewire from the host application and falls back to Blade.

Define a modular schema
-----------------------

[](#define-a-modular-schema)

```
use XaviWorks\ModularSchemaUi\Forms\Form;
use XaviWorks\ModularSchemaUi\Forms\Fields\Email;
use XaviWorks\ModularSchemaUi\Forms\Fields\Text;
use XaviWorks\ModularSchemaUi\Resources\ResourceSchema;

final class UserSchema extends ResourceSchema
{
    public function form(Form $form): Form
    {
        return $form->fields(
            Text::make('name')->required()->maxLength(256),
            Email::make('email')->required(),
        );
    }
}
```

Array declarations remain supported. Validation is declared beside each modular field. Use `required()`, `maxLength()`, `minLength()`, `nullable()`, or `rules()` for additional Laravel validation rules:

```
Text::make('name')->required()->maxLength(256),
Email::make('email')->required(),
Password::make('password')->required()->minLength(8),
Text::make('nickname')->nullable()->rules(['string', 'max:80']),
```

The schema exposes the complete rule map through `validationRules()` and normalized frontend metadata through each field payload. Laravel `FormRequest`classes remain the authority for complex business validation and authorization.

Multiple forms and tables
-------------------------

[](#multiple-forms-and-tables)

Use `UiSchema` when one feature has multiple screens:

```
use XaviWorks\ModularSchemaUi\Forms\Form;
use XaviWorks\ModularSchemaUi\Forms\Fields\Date;
use XaviWorks\ModularSchemaUi\Forms\Fields\Select;
use XaviWorks\ModularSchemaUi\Resources\UiSchema;
use XaviWorks\ModularSchemaUi\Tables\Columns\TextColumn;
use XaviWorks\ModularSchemaUi\Tables\Table;

final class ReservationUi extends UiSchema
{
    public function createForm(Form $form): Form
    {
        return $form->fields(
            Select::make('room_id')->required(),
            Date::make('check_in')->required(),
            Date::make('check_out')->required(),
        );
    }

    public function archiveTable(Table $table): Table
    {
        return $table->columns(
            TextColumn::make('reference')->searchable(),
            TextColumn::make('archived_at'),
        );
    }
}
```

Resolve named definitions with `resolveForm('create')` and `resolveTable('archive')`. This keeps multiple screens grouped by feature without requiring a separate class for every small form or table.

Table actions and authorization
-------------------------------

[](#table-actions-and-authorization)

Tables can expose frontend-neutral row actions. The `{id}` placeholder is replaced by the record key by the adapters:

```
use XaviWorks\ModularSchemaUi\Tables\Action;

return $table->actions([
    Action::make('edit')->url('/users/{id}'),
    Action::make('delete')
        ->httpMethod('DELETE')
        ->url('/users/{id}')
        ->confirm('Delete this record?'),
]);
```

Generated resources include Edit and Delete actions automatically. Add `--authorize` when creating a resource to add Laravel policy calls for create, update, and delete.

Use it with React/Inertia
-------------------------

[](#use-it-with-reactinertia)

```
use Inertia\Inertia;

return Inertia::render('Users/Create', [
    'form' => (new UserSchema)->formPayload(),
]);
```

The installer places the React components in:

```
resources/js/components/modular/

```

Use it with Blade
-----------------

[](#use-it-with-blade)

```

```

For complete usage, generated resources, fields, filters, actions, validation, and frontend adapter examples, see [docs/USAGE.md](docs/USAGE.md).

Package architecture
--------------------

[](#package-architecture)

```
src/Forms       Form and field definitions
src/Tables      Table, column, and filter definitions
src/Resources   Resource and feature-level UI schemas
src/Query       Focused search, filter, sort, and pagination services
src/State       Normalized request state
src/Support     Frontend-neutral schema payloads
src/View        Blade adapter
stubs/frontend  React, Vue, and Livewire starter adapters
workbench       Laravel integration application

```

Development
-----------

[](#development)

```
composer install
composer test
composer lint
composer validate --strict --no-check-publish
```

The workbench is for package development and is excluded from package archives. It is not required by applications installing the package.

License
-------

[](#license)

The MIT License. See [LICENSE](LICENSE).

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/119419905?v=4)[Junn Xavier Adalid](/maintainers/xaviworks)[@xaviworks](https://github.com/xaviworks)

---

Top Contributors

[![xaviworks](https://avatars.githubusercontent.com/u/119419905?v=4)](https://github.com/xaviworks "xaviworks (61 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xaviworks-modular-schema-ui/health.svg)

```
[![Health](https://phpackages.com/badges/xaviworks-modular-schema-ui/health.svg)](https://phpackages.com/packages/xaviworks-modular-schema-ui)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

726176.2k14](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k30.2M151](/packages/laravel-cashier)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M245](/packages/laravel-ai)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
