Installation
Requirements
| Requirement | Version |
|---|---|
| PHP | 8.4 |
| Composer | 2.x |
Install the package
composer require aseguragonzalez/php-mvc
Verify the CLI
The package ships with the mvc binary:
vendor/bin/mvc --help
You should see the list of available commands. If you prefer a shorter path, add vendor/bin to your PATH.
PSR-11 container
The framework resolves controllers, middlewares, and services through a PSR-11 container. The package depends only on psr/container — you choose the implementation. php-di/php-di is a common choice:
composer require php-di/php-di
The scaffolded bootstrap (generated by mvc create-app) wires DI\Container by default.
PSR-7 HTTP foundation
The framework's MvcWebApp reads globals with $_SERVER, $_GET, $_POST, and $_FILES to build an internal PSR-7 request. You do not need to install a separate PSR-7 implementation unless your code interacts with PSR-7 objects directly.
Next step
Quickstart → — scaffold a new app and handle your first request.