PHPackages                             maskulabs/inertia-psr - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. maskulabs/inertia-psr

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

maskulabs/inertia-psr
=====================

PSR-based Inertia helpers and middleware integration for PHP applications

3.x-dev(1mo ago)024↓100%11MITPHPPHP ^8.5CI passing

Since Mar 17Pushed 1mo agoCompare

[ Source](https://github.com/maskulabs/inertia-psr)[ Packagist](https://packagist.org/packages/maskulabs/inertia-psr)[ Docs](https://github.com/maskulabs/inertia-psr)[ RSS](/packages/maskulabs-inertia-psr/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (1)

inertia-psr
===========

[](#inertia-psr)

A framework-agnostic, PSR-based server-side adapter for **Inertia.js v3**.

`inertia-psr` provides a PSR-friendly implementation of the Inertia server protocol for PHP applications. It is designed to stay closely aligned with the official Inertia.js v3 documentation:

-

Features
--------

[](#features)

- PSR-oriented Inertia server implementation
- HTML and JSON Inertia responses
- Shared props support
- Flash data support
- Partial reload support
- Deferred and optional props
- Merge and deep merge metadata
- Once-resolved props with expiration metadata
- Infinite scroll metadata support
- Middleware for core Inertia handling
- Optional SSR integration over HTTP

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

[](#requirements)

This package is designed for PSR-based PHP applications and expects integrations around:

- PHP 8.5+
- **PSR-7** HTTP messages
- **PSR-15** middleware
- **PSR-17** factories
- a session / flash implementation compatible with the package interfaces

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

[](#installation)

Install the package with Composer:

```
composer require maskulabs/inertia-psr
```

What this package provides
--------------------------

[](#what-this-package-provides)

`inertia-psr` focuses on the server-side Inertia protocol and response generation.

It does **not** provide:

- a frontend application
- asset bundling
- framework-specific routing
- framework-specific dependency injection setup
- a built-in session implementation
- a built-in Vite integration

Quick start
-----------

[](#quick-start)

```
