nguyenanhung/slim-3-hmvc-skeleton
Composer 安装命令:
composer create-project nguyenanhung/slim-3-hmvc-skeleton
包简介
A Slim Framework 3 skeleton Hierarchical Model View Controller application for rapid development
关键字:
README 文档
README
Modular Extensions makes the Slim 3 micro framework modular. Modules are groups of independent components, typically model, controller and view, arranged in an application modules sub-directory that can be dropped into other Slim 3 applications.
HMVC stands for Hierarchical Model View Controller.
Module Controllers can be used as normal Controllers or HMVC Controllers and they can be used as widgets to help you build view partials.
What HMVC ?
Hierarchical model–view–controller (HMVC) is a software architectural pattern, a variation of model–view–controller (MVC) similar to presentation–abstraction–control (PAC), that was published in 2000 in an article in JavaWorld Magazine, the authors apparently unaware of PAC, which was published 13 years earlier.
The controller has some oversight in that it selects first the model and then the view, realizing an approval mechanism by the controller. The model prevents the view from accessing the data source directly.
PAC
and HMVC
See: Hierarchical Model View Controller from Wikipedia
Install the Application
Run this command from the directory in which you want to install your new Slim Framework application.
composer create-project nguyenanhung/slim-3-hmvc-skeleton [my-app-name]
or
php composer.phar create-project nguyenanhung/slim-3-hmvc-skeleton [my-app-name]
Replace [my-app-name] with the desired directory name for your new application. You'll want to:
- Point your virtual host document root to your new application's
public/directory. - Ensure
storage/is web writeable.
To run the application in development, you can run these commands
cd [my-app-name]
php composer.phar start
Run this command in the application directory to run the test suite
php composer.phar test
or
./vendor/bin/phpunit
That's it! Now go build something cool.
Running via CLI / Command Line Interface
Project slim-3-hmvc-skeleton use symfony/console is handle Console request
Example
composer worker app:test-command
or
php cli.php app:test-command
@see: Symfony Console
Structure Project
See full Structure: TREE.md
Contact
If any quetion & request, please contact following infomation
| Name | Skype | ||
|---|---|---|---|
| Hung Nguyen | dev@nguyenanhung.com | nguyenanhung5891 | @nguyenanhung |
From Hanoi with Love <3
nguyenanhung/slim-3-hmvc-skeleton 适用场景与选型建议
nguyenanhung/slim-3-hmvc-skeleton 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 23 次下载、GitHub Stars 达 4, 最近一次更新时间为 2018 年 10 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rest」 「mvc」 「console」 「router」 「hmvc」 「micro framework」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nguyenanhung/slim-3-hmvc-skeleton 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nguyenanhung/slim-3-hmvc-skeleton 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nguyenanhung/slim-3-hmvc-skeleton 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
Kinikit - PHP Application development framework MVC component
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-29