# Yii Manager 2 **Repository Path**: suofiya/ym2 ## Basic Information - **Project Name**: Yii Manager 2 - **Description**: 🔥🔥🔥基于yii2高级模板的PHP后台快速/敏捷开发框架 - **Primary Language**: PHP - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: https://ym2.cleverstone.top - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-03-22 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![](https://img.kancloud.cn/6b/c9/6bc984dd1438316470b7ca44f5e18d57_1920x931.png) ------ ![](https://img.kancloud.cn/87/e0/87e052790b5c50810dc0340c5d2e9883_1920x931.png) ------ ![](https://img.shields.io/badge/version-2.0.0-brightgreen) ![](https://img.shields.io/badge/language-php-blue) ![](https://img.shields.io/badge/author-cleverstone-brown) [![](https://img.shields.io/badge/github-cleverstone-brown)](https://github.com/cleverstone) [![](https://img.shields.io/badge/gitee-cleverstone-brown)](https://gitee.com/clever_stone) # 🔥🔥🔥Yii Manager 2.0 + 🌋关于Yii Manager ```docs 1. 你可以用来开发:CRM、OA、CMS、ERP软件等等; 2. 你可以通过视图构建器,可以快速完成前后端页面和接口编写,使开发者完全只处理业务逻辑即可,不用再重复造轮子!!! ``` + 🏠版本介绍 ```docs ym2.0是ym1.0的优化和升级,兼容yii2的高级模板,性能比1.0有很大提升。同时,也扩展了很多组件构建器。 ``` + 🏡演示地址 - [点击这里](http://43.138.39.133:8809/) - 账号: `yiimanager` - 密码: `123456+++` + 🏢视图构建器 - [看云文档](https://www.kancloud.cn/cleverstone/ymb2/) 一、🚀环境安装 ------------- 1、🕐基本环境要求 + `composer ~2.2.18` + `php version >= 5.6` + `bcmath` 2、🕑切换用户 以下命令请切换站点所属用户执行(如:www) 3、🕒初始化和安装 + 命令:`composer install` + 命令:`init` 或 `php init` 4、🕓域名解析和配置网站虚拟主机 5、🕔配置`nginx`伪静态 ```php location / { # Redirect everything that isn't a real file to index.php try_files $uri $uri/ /index.php$is_args$args; } ``` 6、🕕数据库连接配置和数据迁移 > 按以上步骤完成后,尝试访问站点。 二、🌈内置扩展组件 ------------- 1、`phpoffice/phpspreadsheet` PHP电子表格处理库 2、`endroid/qr-code` QrCode处理库 3、`GoogleAuthenticator` MFA安全认证 三、🌂`db` ------------- + `db` 默认数据库ID + `db1` 扩展数据库ID 四、🌀数据迁移 ------------- + `yii-manager` ```php yii migrate --migrationPath=@console/db2 ``` + `应用迁移` ```php yii migrate ``` 五、🌊常用`CLI`命令 ------------- + 清除已发布的静态文件(JS、CSS等) ```php yii clear/asset ``` + 清除`runtime`下`cache`缓存 ```php yii clear/cache ``` * 清除`runtime`下所有目录 ```php yii clear/runtime ``` > 注意: linux 上 `yii`可能需要绝对或相对路径`./yii`或`/www/项目/yii` 六、🌌`apidoc`文档 ------------------ 1、全局安装 + `npm install apidoc -g` + `npm install http-server -g` 2、运行 `apidoc -i frontend/v1/controllers -o apidoc/` ( 生成api_data.json文件 `apidoc -i frontend/v1/controllers -o apidoc/ --write-json true` ) 3、运行 `http-server apidoc` 七、🌑自定义模块 ------------------- 1、设置自动加载 + `Yii::setAlias()`方法 + `composer` `PSR4`配置 八、⚡代码提交 ------------------- + feat: 新功能 + fix: 修复 Bug + docs: 文档修改 + perf: 性能优化 + revert: 版本回退 + ci: CICD 集成相关 + test: 添加测试代码 + refactor: 代码重构 + build: 影响项目构建或依赖修改 + style: 不影响程序逻辑的代码修改 + chore: 不属于以上类型的其他类型(日常事务)