PHPackages                             tebe/yii2-inertia - 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. [Framework](/categories/framework)
4. /
5. tebe/yii2-inertia

ActiveYii2-extension[Framework](/categories/framework)

tebe/yii2-inertia
=================

The Yii 2 adapter for Inertia.js

v1.1.1(1y ago)7285.0k—2.1%10[2 issues](https://github.com/tbreuss/yii2-inertia/issues)MITPHPPHP &gt;=5.6.0

Since Apr 30Pushed 1y ago3 watchersCompare

[ Source](https://github.com/tbreuss/yii2-inertia)[ Packagist](https://packagist.org/packages/tebe/yii2-inertia)[ RSS](/packages/tebe-yii2-inertia/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Inertia.js Yii 2 Adapter
========================

[](#inertiajs-yii-2-adapter)

This is the Yii 2 server-side adapter for [Inertia](https://inertiajs.com).

With Inertia you are able to build single-page apps using classic server-side routing and controllers, without building an API.

To use Inertia you need both a server-side adapter as well as a client-side adapter.

Be sure to follow the installation instructions for the [client-side framework](https://inertiajs.com/client-side-setup) you use.

Demo
----

[](#demo)

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

[](#installation)

Composer require dependency:

```
composer require tebe/yii2-inertia
```

Edit `config/web.php`:

```
