承接 yii2-extensions/app-inertia-vue 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yii2-extensions/app-inertia-vue

Composer 安装命令:

composer create-project yii2-extensions/app-inertia-vue

包简介

Yii2 application template with Inertia.js and Vue 3

README 文档

README

Yii Framework

Inertia.js + Vue 3 Application Template


Build Codecov PHPStan

Skeleton Yii2 application with Inertia.js + Vue 3 integration
Server-driven SPA with Tailwind CSS v4, Flowbite, dark mode, Cloudflare Turnstile, and Codeception tests

Use the "Use this template" button on GitHub to create your own repository from this template.

Features

Feature Overview Inertia.js + Vue 3 Application Template User Directory with Flowbite Table

Quick start

# create a new Yii2 application using the Inertia.js + Vue 3 template
composer create-project --prefer-dist yii2-extensions/app-inertia-vue:^0.1@dev app-vue

# navigate to the application directory
cd app-vue

# run database migrations
./yii migrate/up

# build production assets (one-shot; for live editing see the HMR workflow below)
npm run build

# start the development server
./yii serve

Development workflow with HMR

npm run build produces production assets once and exits. To edit .vue files and see changes in the browser without rebuilding, run two processes side by side:

# Terminal 1 — Vite dev server (HMR for .vue and Tailwind CSS)
npm run dev

# Terminal 2 — Yii2 in dev mode
YII_ENV=dev ./yii serve

How the pieces connect:

  • public/index.php reads the YII_ENV environment variable. When it equals dev, inertiaVue.devMode evaluates to true in config/web.php, and the root view emits <script> tags pointing at http://localhost:5173 instead of the built manifest.
  • Vue HMR is carried natively by @vite/client together with @vitejs/plugin-vue; no additional preamble is required.
  • Before deploying, stop the Vite dev server, run npm run build, unset YII_ENV (or set it to prod), and serve public/. Production mode reads hashed assets from public/build/ via the Vite manifest.

For CORS guidance on non-localhost setups (Docker, tunnels, reverse proxies), troubleshooting, and the full production-switch procedure, see the adapter's Development Notes.

Docker

Apache

docker compose up -d

Documentation

Package information

PHP Yii 22.0.x Latest Stable Version Total Downloads

Quality code

PHPStan Level Max Super-Linter StyleCI

Our social networks

Follow on X

License

License

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固