bravedave / dvc
DVC - General Purpose PSR-4 Data-View-Controller
Installs: 1 550
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Language:JavaScript
Requires
- php: >=8
- ext-ctype: *
- ext-fileinfo: *
- ext-json: *
- ext-mbstring: *
- ext-posix: *
- ext-session: *
- giggsey/libphonenumber-for-php: ^8.11
- league/commonmark: ^2.4
- matthiasmullie/minify: ^1.3.61
- nyholm/psr7: ^1.8
- nyholm/psr7-server: ^1.1
- symfony/mailer: ^5.4
- tijsverkoyen/css-to-inline-styles: ^2.2
- tinymce/tinymce: <6
Requires (Dev)
- dev-master
- v25.03.01
- v24.01.01
- v23.12.01
- v23.04.19
- v23.04.18
- v23.04.17
- v23.04.16
- v23.04.15
- v23.04.14
- v23.04.13
- v23.04.12
- v23.04.11
- v23.04.10
- v23.04.09
- v23.04.08
- v23.04.07
- v23.04.06
- v23.04.05
- v23.01.04
- v23.01.03
- v23.01.02
- v23.01.01
- v22.11.01
- v22.10.01
- v22.09.01
- v22.08.01
- v22.07.01
- v22.06.04
- v22.06.03
- v22.06.02
- v22.06.01
- v22.05.01
- v22.04.08
- v22.04.07
- v22.04.06
- v22.04.05
- v22.04.04
- v22.04.03
- v22.04.02
- v22.04.01
- v22.03.02
- v22.03.01
- v22.02.03
- v22.02.02
- v22.02.01
- v22.01.05
- v22.01.04
- v22.01.03
- v22.01.02
- v22.01.01
- v21.12.04
- v21.12.03
- v21.12.02
- v21.12.01
- v21.09.01
- v21.08.03
- v21.08.02
- v21.08.01
- v21.07.11
- v21.07.10
- v21.07.09
- v21.07.08
- v21.07.07
- v21.07.06
- v21.07.05
- v21.07.04
- v21.07.03
- v21.07.02
- v21.07.01
- v21.06.02
- v21.06.01
- v21.05.03
- v21.05.02
- v21.05.01
- v21.04.15
- v21.04.14
- v21.04.13
- v21.04.12
- v21.04.11
- v21.04.10
- v21.04.09
- v21.04.08
- v21.04.07
- v21.04.06
- v21.04.05
- v21.04.04
- v21.04.03
- v21.04.02
- v21.04.01
- v21.03.02
- v21.03.01
- v21.02.03
- v21.02.02
- v21.02.01
- v21.01.07
- v21.01.06
- v21.01.05
- v21.01.04
- v21.01.03
- v21.01.02
- v21.01.01
- v20.12.21
- v20.12.20
- v20.12.19
- v20.12.18
- v20.12.17
- v20.12.16
- v20.12.15
- v20.12.14
- v20.12.13
- v20.12.12
- v20.12.11
- v20.12.10
- v20.12.09
- v20.12.08
- v20.12.07
- v20.12.06
- v20.12.05
- v20.12.04
- v20.12.03
- v20.12.02
- v20.12.01
- v20.11.14
- v20.11.13
- v20.11.12
- v20.11.11
- v20.11.10
- v20.11.09
- v20.11.08
- v20.11.07
- v20.11.06
- v20.11.05
- v20.11.04
- v20.11.03
- v20.11.02
- v20.11.01
- v20.10.19
- v20.10.18
- v20.10.17
- v20.10.16
- v20.10.15
- v20.10.14
- v20.10.13
- v20.10.12
- v20.10.11
- v20.10.10
- v20.10.9
- v20.10.8
- v20.10.7
- v20.10.6
- v20.10.5
- v2.10.4
- v2.10.3
- v2.10.2
- v2.10.1
- v2.1.12
- v2.1.11
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.9.0
- v1.8.9
- v1.8.8
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.3
- v1.8.2
- v1.8.1
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2.0
This package is auto-updated.
Last update: 2025-03-13 05:24:11 UTC
README
PHP framework for web applications and APIs. Configured with Bootstrap, but could just as easily support others.
Getting Started
- WSL (Windows Subsystem for Linux) is a great development environment for PHP, there some notes about installing wsl here
Install
mkdir newapp
cd newapp
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/" } } }
install bravedave/dvc and update runtime autoloader
note: this is the same location used in the composer.json file
composer u
Create an basic application
create a application folder
mkdir -p src/app
add an application file
file src/app/application.php
<?php class application extends bravedave\dvc\application { static public function startDir() { return dirname(__DIR__); } }
create a documentroot
this creates a documentroot and copies in a fallback file
cp -R vendor/bravedave/dvc/tests/www src
system will run
php -S localhost:8080 src/www/_mvp.php
available at http://localhost:8080
there is a tutorial here