kartik-v/yii2-app-practical
Composer 安装命令:
composer create-project kartik-v/yii2-app-practical
包简介
Yii 2 Practical Application Template
README 文档
README
Yii 2 Practical Project Template
Yii 2 Practical Project Template is a skeleton Yii 2 application based on the yii2-advanced template best for developing complex Web applications with multiple tiers. The template allows a practical method to directly access the frontend from the app root.
The template includes three tiers: front end, back end, and console, each of which is a separate Yii application.
The template is designed to work in a team development environment. It supports deploying the application in different environments.
Why yii2-practical?
After installing an app in the yii2-advanced application you normally would access the
frontend by:
http://domain/app/frontend/web
However, in many practical scenarios (especially on shared and single domain hosts) one would want their users to directly access frontend as:
http://domain/app
The yii2-app-practical enables you to achieve just that by carefully moving and rearranging the
bootstrap files and web components of frontend to work directly out of the app root. The
frontend/web is entirely eliminated and one can directly access the application frontend
this way:
http://domain/app
All other aspects of the app configuration remain the same as the yii2-advanced app. The common, backend and console
will remain as is. The frontend config, assets, models, controllers, views, widgets and components, will still reside within
the frontend directory. It is just the web access that is moved out to app root.
SOME KEY ADDITIONS
- The template has some security preconfigured for users with Apache web servers. It has a default
.htaccesssecurity configuration setup. - The template has prettyUrl enabled by default and the changes have been made to
.htaccessas well asurlManagercomponent config in the common config directory. - The template has isolated cookie settings for backend and frontend so that you can seamlessly access frontend and backend from same client.
The config files includes special
identityandcsrfcookie parameter settings for backend. Edit it according to your needs if necessary.
Detailed documentation can be referred at docs/guide/README.md.
DIRECTORY STRUCTURE
/
/ contains the frontend entry script, favicon, and robots.txt.
assets/ contains frontend application runtime web assets such as JavaScript and CSS
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
backend
assets/ contains backend application runtime web assets such as JavaScript and CSS
config/ contains backend configurations
controllers/ contains Web controller classes
models/ contains backend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for backend application
views/ contains view files for the Web application
web/ contains the entry script and Web resources
frontend
assets/ contains web assets and scripts used by frontend application
config/ contains frontend configurations
controllers/ contains Web controller classes
models/ contains frontend-specific model classes
runtime/ contains files generated during runtime
tests/ contains tests for frontend application
views/ contains view files for the Web application
widgets/ contains frontend widgets
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
kartik-v/yii2-app-practical 适用场景与选型建议
kartik-v/yii2-app-practical 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.69k 次下载、GitHub Stars 达 67, 最近一次更新时间为 2014 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「application template」 「advanced」 「yii2」 「practical」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 kartik-v/yii2-app-practical 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kartik-v/yii2-app-practical 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 kartik-v/yii2-app-practical 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Kinikit - PHP Application development framework MVC component
A Laravel queue connector to process jobs at the end of the application
C3JS By phpanonymous (Mahmoud Ibrahim)
Simple ASCII output of array data
E2E Studios PHP Framework adaptation of leafsphp/blade package
统计信息
- 总下载量: 2.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 68
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-24