marko/inertia
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
Related Packages
marko/testing
Testing utilities for the Marko framework - fakes, assertions, and Pest integrat...
221
0
marko/inertia-react
React companion for marko/inertia - configuration and frontend marker binding
65
1
marko/debugbar
Development debugbar and request profiler for the Marko Framework with request,...
52
1
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.11.0 | ^8.5 | MIT | |
| 0.10.0 | ^8.5 | MIT | |
| 0.9.0 | ^8.5 | MIT | |
| 0.8.5 | ^8.5 | MIT | |
| 0.8.4 | ^8.5 | MIT | |
| 0.8.3 | ^8.5 | MIT | |
| 0.8.2 | ^8.5 | MIT | |
| 0.8.1 | ^8.5 | MIT | |
| 0.8.0 | ^8.5 | MIT | |
| 0.7.0 | ^8.5 | MIT | |
| 0.6.1 | ^8.5 | MIT | |
| 0.6.0 | ^8.5 | MIT | |
| 0.5.0 | ^8.5 | MIT | |
| 0.4.2 | ^8.5 | MIT | |
| 0.4.1 | ^8.5 | MIT | |
| 0.4.0 | ^8.5 | MIT |