lattice-php/lattice

Server-driven React components for Laravel and Inertia.
1,547 61
Install
composer require lattice-php/lattice
Latest Version:0.36.1
PHP:^8.4
License:MIT
Last Updated:Aug 2, 2026
Links: GitHub  ·  Packagist
Maintainer: bambamboole

Lattice lets you describe your interface — pages, forms, tables, actions, and menus — in PHP on the server and render it with real React components on the client over Inertia. You keep building the way you already do in Laravel, while your users get a polished React front end, with no hand-wired API and no UI contract duplicated across two languages.

Installation

composer require lattice-php/lattice
npm install @lattice-php/lattice

See Installation for the full setup. No Node toolchain? Lattice also ships prebuilt assets — publish them with php artisan lattice:assets and skip the npm step entirely; see No-build setup.

Documentation

Full documentation, guides, and examples live at latticephp.com.

Generating types for custom wire classes

If you define your own Lattice components, fields, columns, filters, or effects in PHP, regenerate the matching TypeScript so the React side stays in lockstep:

php artisan lattice:typescript

Projects that use only Lattice's bundled components never need this — the command detects it and no-ops. Generating custom types requires the dev dependency spatie/laravel-typescript-transformer.

License

The MIT License (MIT). See LICENSE.md for details.

Related Packages

yogijowo/laravel12-react-starterkit

Starter Kit Laravel 12 + React + Inertia + Tailwind + ShadCN UI + Spatie Permiss...

469 173
machour/laravel-data-table

A reusable, server-side DataTable system for Laravel + Inertia.js + React (TanSt...

1,384 2
akira/laravel-spectra

Illuminate your API — interactive inspector for Laravel 12 with Inertia + React

13 4
samushi/domion

Domion - Professional Architecture for Laravel with Automated Frontend & Auth In...

66 0