Skip to content

marko-php/marko-inertia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/inertia

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

About

[READ-ONLY] Inertia.js protocol integration for the Marko Framework - middleware, response factory, shared data, and SSR support. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages