tolik505 / yii2-vuejs-assets
This assets allow to use vueJs in your Yii2 application
Installs: 927
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/axios: ~0.16.1
- bower-asset/vee-validate: ~2.0.0
- bower-asset/vue: ~2.3.0
- bower-asset/vue-router: ~2.5.3
- bower-asset/vuex: ~2.3.0
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2025-02-07 21:06:35 UTC
README
This assets allow to use vueJs in your Yii2 application. It contains vue.js, axios.js, vue-router.js, vuex.js and vee-validate.js (for form validation)
Installation
The preferred way to install this extension is through composer.
Either run
composer require tolik505/yii2-vuejs-assets "*"
or add
"tolik505/yii2-vuejs-assets": "*"
to the require section of your composer.json
file.
Usage
You may utilize a bundle of assets by adding of this code in your view :
<?php \tolik505\vuejs\VueBundleAsset::register($this); ?>
If you want to utilize only pure Vue, add this code in your view :
<?php \tolik505\vuejs\VueAsset::register($this); ?>