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
- 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
- PHP 8.0 or higher
- Composer
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/"
}
}
}
composer u
vendor/bin/dvc make::application
vendor/bin/dvc serve
Then open http://localhost:1265 in your browser.
- there is a tutorial here
DVC includes a CLI tool to help you scaffold components and run useful commands.
php vendor/bin/dvc [command] [options]
-
serve
Start a local PHP development server -
make::application
Creates basic application structures includingpublic
folder andsrc/app/application.php
file -
make::module <Name>
Generate a module framework insrc/app/<Name>
and a controller stub incontrollers
vendor/bin/dvc make::module blog
- Creates
src/app/blog/controller.php
andsrc/controller/blog.php
with a boilerplate structures. - Which is available to view at http://localhost:1265/blog in your browser.
src/
├── app/
│ ├── <module>/controller.php
│ └── <module>/views/..
├── controllers/
├── public/
│ └── _mvp.php
├── vendor/
│ └── bin/dvc
├── composer.json
└── README.md
Licensed under the MIT License.