PHPackages                             kekaadrenalin/yii2-vue - 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. kekaadrenalin/yii2-vue

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

kekaadrenalin/yii2-vue
======================

This is the Vue.js extension for Yii2.

1.2.3(7y ago)026[1 issues](https://github.com/kekaadrenalin/yii2-vue/issues)BSD-3-ClausePHP

Since Oct 12Pushed 7y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (11)Used By (0)

Vue.js Extension for Yii2
=========================

[](#vuejs-extension-for-yii2)

This is the Vue.js + Vuex extension for Yii2.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist kekaadrenalin/yii2-vue "*"

```

or add

```
"kekaadrenalin/yii2-vue": "*"

```

to the require section of your `composer.json` file.

Add a new component to the components section of the application configuration file :

```
'components' => [
    'vue' => [
        'class' => 'kekaadrenalin\vue\GlobalComponent',
    ],
    // ...
],

```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

@app/views/layouts/main.php

```
