front-interop/impl
最新稳定版本:1.0.0-alpha1
Composer 安装命令:
composer require front-interop/impl
包简介
Reference implementations for Front-Interop.
关键字:
README 文档
README
Reference implementations of the Front-Interop interface for PHP 8.4+.
These implementations are intentionally naive — they exist to showcase the FrontController contract itself. Production front controllers would be obtained from an IoC container and would compose a request/response system, a router/dispatcher, a robust error handler, and so on.
Installation
composer require front-interop/impl
Usage
Three reference implementations cover three execution contexts.
ConsoleFrontController
A typical command-line console front controller, reading $argv and writing
to injected $stdout/$stderr resources.
php bin/hello.php World
RequestFrontController
A typical HTTP front controller, reading $_GET and emitting HTML.
Run composer hello at the package root, then visit:
http://localhost:8080/index.php?name=World
FrankenFrontController
A specialized front controller for FrankenPHP, wrapping a
RequestFrontController in a frankenphp_handle_request() worker loop
bounded by an optional maximum request count (0 for unbounded).
Classes
| Interface | Implementation |
|---|---|
| FrontController | ConsoleFrontController, RequestFrontController, FrankenFrontController |
All classes are in the FrontInterop\Impl namespace.
See the Front-Interop interface package for the full specification.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-04