PHPackages                             chedaroo/inertia-marko - 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. [API Development](/categories/api)
4. /
5. chedaroo/inertia-marko

ActiveMarko-module[API Development](/categories/api)

chedaroo/inertia-marko
======================

The Marko adapter for Inertia.js.

v0.1.2(2mo ago)24MITPHPPHP ^8.5CI passing

Since Apr 21Pushed 2mo agoCompare

[ Source](https://github.com/chedaroo/inertia-marko)[ Packagist](https://packagist.org/packages/chedaroo/inertia-marko)[ Docs](https://github.com/chedaroo/inertia-marko)[ RSS](/packages/chedaroo-inertia-marko/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

inertia-marko
=============

[](#inertia-marko)

The [Marko PHP](https://marko.build) server-side adapter for [Inertia.js](https://inertiajs.com).

Requirements
------------

[](#requirements)

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

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

[](#installation)

```
composer require chedaroo/inertia-marko
```

Usage
-----

[](#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
-----------

[](#development)

### Devcontainer (recommended)

[](#devcontainer-recommended)

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

[](#local-setup)

Requires PHP 8.5+ and [Composer](https://getcomposer.org).

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

### Running tests

[](#running-tests)

```
composer test
```

### Checking code style

[](#checking-code-style)

```
composer format:check
```

To auto-fix:

```
composer format
```

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance86

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

2

Last Release

74d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3003877?v=4)[Richard Jesudason](/maintainers/chedaroo)[@chedaroo](https://github.com/chedaroo)

---

Top Contributors

[![chedaroo](https://avatars.githubusercontent.com/u/3003877?v=4)](https://github.com/chedaroo "chedaroo (18 commits)")

---

Tags

inertiamarko

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chedaroo-inertia-marko/health.svg)

```
[![Health](https://phpackages.com/badges/chedaroo-inertia-marko/health.svg)](https://phpackages.com/packages/chedaroo-inertia-marko)
```

PHPackages © 2026

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