gingteam / amphp-runtime
amphp runtime for symfony
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/gingteam/amphp-runtime
Requires
- amphp/cluster: ^1.0
- amphp/http-server: ^2.1
- amphp/http-server-static-content: dev-master
- amphp/react-adapter: ^2.1
- react/http: ^1.5
- symfony/http-kernel: ^6.0
- symfony/psr-http-message-bridge: ^2.1
- symfony/runtime: ^6.0
This package is auto-updated.
Last update: 2025-10-06 18:57:57 UTC
README
// worker.php <?php use App\Kernel; use GingTeam\AmphpRuntime\Runtime; require_once dirname(__DIR__).'/vendor/autoload.php'; $app = function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; $options = [ 'project_dir' => dirname(__DIR__, 1), 'document_root' => __DIR__, 'port' => 8000, ]; $runtime = new Runtime($options); [$app, $args] = $runtime->getResolver($app)->resolve(); $app = $app(...$args); $runtime->getRunner($app)->run();