front-interop / impl
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/front-interop/impl
Requires
- php: >=8.4
- front-interop/interface: 1.x@dev
Requires (Dev)
- pds/composer-script-names: ^1.0
- pds/skeleton: ^1.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-02-04 05:35:26 UTC
README
This package include three reference implementations for Front-Interop:
- ConsoleFrontController
- RequestFrontController
- FrankenFrontController
These are intentionally naive to showcase the front controller functionality itself. Real front controllers would be obtained from an IOC container, and would include a request/response system, a router/dispatch system, a robust error handler system, and so on.
ConsoleFrontController
This is a typical command-line console front controller.
To run it, issue the following command at the package root:
php bin/hello.php World
RequestFrontController
This is a typical HTTP front controller.
To run it, issue composer hello at the package root, then visit the following
link:
http://localhost:8080/index.php?name=World
FrankenFrontController
This is a specialized front controller for FrankenPHP that points workers to a RequestFrontController.