pepa-linha/nette-inertia

The Nette adapter for Inertia.js.
194 5
Install
composer require pepa-linha/nette-inertia
Latest Version:v1.0.1
PHP:>=7.4
License:MIT
Last Updated:Jan 24, 2021
Links: GitHub  ·  Packagist
Maintainer: pepa-linha

Nette Inertia

The Nette adapter for Inertia.js.

Installation

composer require pepa-linha/nette-inertia

Usage

Extends your presenter

class BasePresenter extends InertiaPresenter

and then use $this->inertia(...) method in your presenters to send page object response.

By default Inertia page component name is the same like presenter name. You can change it by override getInertiaComponentName method.

Set the default state of the Inertia application with $inertiaPageObject in template:

<div id="app" data-page='{$inertiaPageObject|noescape}'></div>

Related Packages

inertiajs/inertia-laravel

The Laravel adapter for Inertia.js.

86,532,575 2,484
laracasts/utilities

Transform your PHP to JavaScript

10,999,527 2,199
edcpl/inertia-laravel

The EDC version of Laravel adapter for Inertia.js.

2,379 0
onix-systems-php/hyperf-inertia

The Hyperf adapter for Inertia.js.

248 4
inventor96/inertia-mako

The Mako adapter for Inertia.js.

185 0

Version History

Version Released PHP License
v1.0.1 >=7.4 MIT
v1.0.0 >=7.4 MIT