cargic / edu
Yii2 demo
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Language:Roff
Type:project
Requires
- php: >=7.0.0
- 2amigos/yii2-gallery-widget: ~1.0
- bower-asset/blueimp-file-upload: ~9.9
- milon/barcode: ^5.3
- php-curl-class/php-curl-class: ^7.1
- phpoffice/phpexcel: ~1.8
- picqer/php-barcode-generator: ^0.2.1
- tecnickcom/tcpdf: ^6.2
- yiisoft/yii2: ~2.0.5
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-redis: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/verify: ~0.3.1
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-15 20:47:23 UTC
README
企业系统使用Yii2框架开发,使用composer管理php依赖包(测试)
安装步骤
- 安装 composer.
- 在根目录执行以下命令来加载php依赖包文件
- composer install
- 生产环境加上 --no-dev 参数安装依赖包
- 配置Apache/nginx根路径
- /path/to/server/frontend/web/
- /path/to/server/backend/web/
- /path/to/server/api/web/
- 配置文件夹权限
- /path/to/server/backend/runtime 0755 apache apache
- /path/to/server/backend/web/assets 0755 apache apache
- /path/to/server/frontend/runtime 0755 apache apache
- /path/to/server/frontend/web/assets 0755 apache apache
- /path/to/server/api/runtime 0755 apache apache
- /path/to/server/console/runtime 0755 apache apache
- /path/to/server/data/uploads 0755 apache apache
- 数据库配置
- /path/to/server/common/config/db.php
- memcached配置
- /path/to/server/frontend/config/main.php
- /path/to/server/backend/config/main.php
- /path/to/server/api/config/main.php
- /path/to/server/console/config/main.php
- redis配置
- /path/to/server/common/config/main.php
- 其他参数配置
- /path/to/server/common/config/params.php
- 关闭调试模式及修改环境为生产环境
- /path/to/server/frontend/web/index.php
- /path/to/server/backend/web/index.php
- /path/to/server/api/web/index.php
- defined('YII_DEBUG') or define('YII_DEBUG', false);
- defined('YII_ENV') or define('YII_ENV', 'product');
- 定时任务配置
- crontab -e
- MAILTO=''
- */5 * * * * /path/to/server/console/yii trackingcode/subscribe
项目结构
- api为接口目录
- backend为后台管理目录
- console为脚本目录
- frontend为前端用户目录
- common为公用配置/类库目录
- data为资源上传目录