marko/inertia

Inertia.js protocol integration for the Marko Framework - middleware, response factory, shared data, and SSR support

Maintainers

Package info

github.com/marko-php/marko-inertia

Type:marko-module

pkg:composer/marko/inertia

Statistics

Installs: 63

Dependents: 3

Suggesters: 0

Stars: 1

0.6.0 2026-05-02 00:43 UTC

This package is auto-updated.

Last update: 2026-05-12 17:50:28 UTC


README

Inertia.js protocol integration for the Marko Framework - middleware, response factory, shared data, and SSR support.

Installation

composer require marko/inertia

Quick Example

use Marko\Inertia\Inertia;
use Marko\Routing\Http\Request;
use Marko\Routing\Http\Response;

class DashboardController
{
    public function __construct(
        private readonly Inertia $inertia,
    ) {}

    public function index(Request $request): Response
    {
        return $this->inertia->render($request, 'Dashboard', [
            'user' => ['name' => 'Paulo'],
        ]);
    }
}

Documentation

Full usage, API reference, and examples: marko/inertia