Yii2 Vue Adminlte

screenshot of Yii2 Vue Adminlte

在Yii项目中添加Vue,Vuex进行视图开发,用AdminLte进行Vue组件化后构建Layout,用Element Ui构建相关表单,并提供Gii的Crud生成模板。

Overview

The Yii2-Vue-Adminlet project is an integration framework that combines Yii framework with Vue.js to enhance front-end development. By leveraging Vuex for state management and AdminLTE for layout and componentization, this project aims to provide developers with a powerful toolkit for building modern web applications. It simplifies the utilitarian aspects of CRUD operations with an easy-to-use Gii generator integrated with Element UI components.

This project is designed for developers looking to streamline their workflow by blending PHP with modern JavaScript practices. With adjustable layouts and easy configurations, it allows for a seamless blend of backend and frontend technologies, making it an attractive choice for anyone familiar with Yii and Vue.

Features

  • Easy Installation: Quickly set up the framework using Composer with the command composer require evondu/yii2-vue-adminlte.
  • Configurable Layouts: Supports customizable layouts for your application, allowing developers to create different visual structures using yiilte\YiiLte::layout().
  • Variable Transformation: Helps convert PHP variables to JavaScript, making it easier for Vue to interact with backend data using the yiivue\Import::value() function.
  • Asynchronous Form Submission: Provides a method to submit JavaScript objects as forms without page reloads using this.$yii.submit(), which supports Yii's CSRF authentication.
  • PHP Mixed Components: Facilitates the creation of components that can utilize both PHP and Vue syntax, improving flexibility in developing user interface elements.
  • Gii Generator Integration: The built-in Gii CRUD generator saves time by automating the creation of standard CRUD operations, which can then be easily adjusted according to project needs.
  • Contribution Friendly: Encourages community contributions through a clear structure for forking and pull requests, fostering collaboration and improvements.