PHPackages                             loicdelanoe/statamic-inertia-adapter - 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. loicdelanoe/statamic-inertia-adapter

ActiveLibrary[API Development](/categories/api)

loicdelanoe/statamic-inertia-adapter
====================================

Seamlessly integrate Statamic CMS data with Inertia.js-powered Laravel front-ends.

v0.0.6(4mo ago)234[4 PRs](https://github.com/loicdelanoe/statamic-inertia-adapter/pulls)1MITPHPPHP ^8.3CI passing

Since Jan 8Pushed 2mo agoCompare

[ Source](https://github.com/loicdelanoe/statamic-inertia-adapter)[ Packagist](https://packagist.org/packages/loicdelanoe/statamic-inertia-adapter)[ Docs](https://github.com/loicdelanoe/statamic-inertia-adapter)[ GitHub Sponsors]()[ RSS](/packages/loicdelanoe-statamic-inertia-adapter/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (11)Versions (12)Used By (1)

Statamic Inertia.js adapter
===========================

[](#statamic-inertiajs-adapter)

> ⚠️ **Warning:** This project is currently in development. APIs and features may change without notice.

Introduction
============

[](#introduction)

This adapter allows you to use Inertia.js with Statamic. For more information on Statamic’s features and how they work, please refer to the official documentation:

Installation
============

[](#installation)

To setup the package in an existing Statamic project, run the following command:

```
composer require loicdelanoe/statamic-inertia-adapter

```

After that, you will need to set up Inertia.js. For guidance, follow the [official documentation](https://inertiajs.com/installation).

If you prefer a ready-to-go setup, you can use the [Statamic Inertia.js starter kit](https://github.com/loicdelanoe/statamic-inertia-starter). Currently, it only supports Vue.js, but it should be easy to adapt for React or Svelte.

Usage
=====

[](#usage)

Layouts and Templates
---------------------

[](#layouts-and-templates)

This package supports Layouts and Templates as defined in Statamic.

- Layouts must be placed in `resources/js/layouts`
- Templates must be placed in `resources/js/pages`

**⚠️ Important:**

For Statamic to recognize available layouts and templates, you must also create corresponding (empty) view files in the default `resources/views` directory.

For example, if you create a template at:

```
resources/js/pages/Home.vue

```

You must also create one of the following files:

```
resources/views/home.antlers.html

```

or

```
resources/views/home.blade.php

```

These files can remain empty, they are only needed to register the template with Statamic.

Shared Data
-----------

[](#shared-data)

The package exposes shared data using Inertia.js. For more information about Inertia’s shared data system, see the [official documentation](https://inertiajs.com/docs/v2/data-props/shared-data).

The following data is shared globally:

- **Navigations**: all menus defined in your CMS are available in the frontend.
- **Globals**: global fields or settings accessible across pages.
- **Multisite support**: if you are using Statamic Pro’s multisite feature, a variable is available to help implement a site switcher.

    - To make the site switcher more accurate, a `related_page` key is also provided. It corresponds to the equivalent page in other sites/languages, allowing you to link users to the correct localized page directly.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance80

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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 ~9 days

Total

6

Last Release

125d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95628210?v=4)[Loïc Delanoë](/maintainers/loicdelanoe)[@loicdelanoe](https://github.com/loicdelanoe)

---

Top Contributors

[![loicdelanoe](https://avatars.githubusercontent.com/u/95628210?v=4)](https://github.com/loicdelanoe "loicdelanoe (21 commits)")

---

Tags

laravelLoïc Delanoëstatamic-inertia-adapter

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/loicdelanoe-statamic-inertia-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/loicdelanoe-statamic-inertia-adapter/health.svg)](https://phpackages.com/packages/loicdelanoe-statamic-inertia-adapter)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k9.9M90](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[spatie/laravel-github-webhooks

Handle GitHub webhooks in a Laravel application

93157.3k5](/packages/spatie-laravel-github-webhooks)

PHPackages © 2026

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