bravedave/dvc
Composer 安装命令:
composer require bravedave/dvc
包简介
DVC - General Purpose PSR-4 Data-View-Controller
README 文档
README
DVC is a lightweight, PSR-4-compliant PHP framework for building modern web applications and APIs. It comes pre-configured with Bootstrap but is flexible enough to work with any front-end you prefer.
📚 Documentation: https://brayworth.com/docs
🚀 Features
- MVC Architecture – Clean separation of concerns (Models, Views, Controllers)
- Built-in CLI Tool – Generate controllers, serve your app, and more
- Bootstrap-Ready – Ships with Bootstrap, easily replaceable
- Simple & Modern – No heavy abstractions, just solid structure
AI Coding in This Repo
- AI onboarding and governance: .github/AI-README.md
- AI tooling index: .github/AI-CODING-INDEX.md
- Primary coding standard: .github/copilot-instructions.md
- API contract parity standard: .github/prompts/api-contract-maintenance.standard.md
- AI context rule: In any folder,
README.mdis authoritative for that folder and should be read before planning or making changes there. - Exception: In
.github/, use.github/AI-README.mdas the authoritative governance document.
🛠️ Getting Started
Requirements
- PHP 8.0 or higher
- Composer
↓ Installation
1. create a composer.json
The application relies on the composer autoload features, this (very) basic composer.json file tells the autloader where to look for this application and installs bravedave/dvc
composer.json
{
"require": {
"bravedave/dvc": "*"
},
"autoload": {
"psr-4": {
"": "src/app/"
}
}
}
2. install the dependencies, create application and run the Dev server
composer u vendor/bin/dvc make::application vendor/bin/dvc serve
Then open http://localhost:1265 in your browser.
🎓 Tutorial
- there is a tutorial here
🧰 Command-Line Interface (CLI)
DVC includes a CLI tool to help you scaffold components and run useful commands.
Usage
php vendor/bin/dvc [command] [options]
Available Commands
-
serveStart a local PHP development server -
make::applicationCreates basic application structures includingpublicfolder andsrc/app/application.phpfile -
make::module <Name>Generate a module framework insrc/app/<Name>and a controller stub incontrollers
Example
vendor/bin/dvc make::module blog
- Creates
src/app/blog/controller.phpandsrc/controller/blog.phpwith a boilerplate structures. - Which is available to view at http://localhost:1265/blog in your browser.
📁 Folder Structure
src/
├── app/
│ ├── <module>/controller.php
│ └── <module>/views/..
├── controllers/
├── public/
│ └── _mvp.php
├── vendor/
│ └── bin/dvc
├── composer.json
└── README.md
📄 License
Licensed under the MIT License.
bravedave/dvc 适用场景与选型建议
bravedave/dvc 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 2.1k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 01 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mvc」 「Model View Controller」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bravedave/dvc 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bravedave/dvc 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bravedave/dvc 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Shoot aims to make providing data to your templates more manageable
Kinikit - PHP Application development framework MVC component
A package for automatically encrypting and decrypting Eloquent attributes in Laravel 5.5+, based on configuration settings.
Interfaces for web resource models and services to retrieve and create them
Illuminate View for Morningmedley.
Laravel 5 - Repositories to the database layer
统计信息
- 总下载量: 2.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-26