New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

chedaroo/inertia-marko

The Marko adapter for Inertia.js.
4 2

Larablocks Analysis

chedaroo/inertia-marko works with any PHP project: the latest release (v0.1.2, Apr 21, 2026) doesn't depend on Laravel.

Promising: maintained and up to date, meets 1 of 3 checks; not yet widely used.

  • Released in the last 12 months (Apr 21, 2026)
  • 0 downloads a month (needs 10,000)
  • 2 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Apr 21, 2026.
  • 2 releases in the last 12 months.
  • First released: Apr 21, 2026.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require chedaroo/inertia-marko
Latest Version:v0.1.2
PHP:^8.5
License:MIT
Last Updated:Apr 21, 2026
Links: GitHub  ·  Packagist
Maintainer: chedaroo

inertia-marko

The Marko PHP server-side adapter for Inertia.js.

Requirements

  • PHP 8.5+
  • Marko PHP framework with marko/view and marko/view-latte

Installation

composer require chedaroo/inertia-marko

Usage

use Inertia\InertiaInterface;
use Inertia\Middleware\HandleInertiaRequests;
use Marko\Routing\Attributes\Get;
use Marko\Routing\Attributes\Middleware;
use Marko\Routing\Http\Response;

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

    #[Get('/dashboard')]
    #[Middleware(HandleInertiaRequests::class)]
    public function index(): Response
    {
        return $this->inertia->render('Dashboard', [
            'user' => 'Cheda',
        ]);
    }
}

Development

Open the repo in VS Code and choose Reopen in Container — it will build a PHP 8.5 environment and run composer install automatically. This also works with GitHub Codespaces.

Local setup

Requires PHP 8.5+ and Composer.

git clone https://github.com/chedaroo/inertia-marko.git
cd inertia-marko
composer install

Running tests

composer test

Checking code style

composer format:check

To auto-fix:

composer format

License

MIT

Related Packages

inertiajs/inertia-laravel

The Laravel adapter for Inertia.js.

99,451,905 2,491
onix-systems-php/hyperf-inertia

The Hyperf adapter for Inertia.js.

250 4
inventor96/inertia-mako

The Mako adapter for Inertia.js.

246 0
amirami/inertia-codeigniter-4

Inertia server-side adapter for CodeIgniter 4

88 29
nld-labs/laravel-momentum

A Laravel library to streamline Inertia.js application development.

52 0

Version History

Version Released PHP License
v0.1.2 ^8.5 MIT
v0.1.1 ^8.5 MIT