friendsofhyperf / http-request-lifecycle
The http request lifecycle component for Hyperf.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Requires
- hyperf/http-server: ~3.0.24
Suggests
- hyperf/grpc-server: Required to use (~3.0.0)
- dev-main / 3.1.x-dev
- 3.0.x-dev
- v3.0.85
- v3.0.80
- v3.0.70
- v3.0.55
- v3.0.52
- v3.0.51
- v3.0.47
- v3.0.44
- v3.0.42
- v3.0.35
- v3.0.34
- v3.0.22
- v3.0.20
- v3.0.14
- v3.0.6
- v3.0.5
- v3.0.2
- v3.0.0
- v3.0.0-rc.16
- v3.0.0-rc.9
- v3.0.0-rc.7
- v3.0.0-rc.4
- v3.0.0-rc.1
- v3.0.0-beta35
- v3.0.0-beta34
- v3.0.0-beta33
- v3.0.0-beta32
- v3.0.0-beta29
- v3.0.0-beta28
- v3.0.0-beta27
- v3.0.0-beta26
- v3.0.0-beta25
- v3.0.0-beta24
- v3.0.0-beta23
- v3.0.0-beta22
- v3.0.0-beta21
- v3.0.0-beta20
- v3.0.0-beta19
- v3.0.0-beta18
- v3.0.0-beta17
- v3.0.0-beta16
- v3.0.0-beta15
- v3.0.0-beta14
- v3.0.0-beta13
- v3.0.0-beta12
- v3.0.0-beta11
- v3.0.0-beta10
- v3.0.0-beta9
- v3.0.0-beta8
- v3.0.0-beta7
- v3.0.0-beta6
- v3.0.0-beta5
- v3.0.0-beta4
- v3.0.0-beta3
- v3.0.0-beta2
- v3.0.0-beta1
- 2.0.x-dev
- v2.0.28
- v2.0.24
- v2.0.22
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
This package is auto-updated.
Last update: 2024-12-21 03:12:05 UTC
README
The http request lifecycle component for Hyperf. This feature has been merged into the official repository (hyperf/http-server, #5715).
Installation
composer require friendsofhyperf/http-request-lifecycle
Usage
<?php namespace App\Listener; use FriendsOfHyperf\Http\RequestLifeCycle\Events\RequestHandled; use Hyperf\Event\Annotation\Listener; use Hyperf\Event\Contract\ListenerInterface; #[Listener] class RequestHandledListener implements ListenerInterface { public function listen(): array { return [ RequestHandled::class, ]; } /** * @param RequestHandled $event */ public function process(object $event) { var_dump($event); } }
Events
- RequestReceived
- RequestHandled
- RequestTerminated
Sponsor
If you like this project, Buy me a cup of coffee. [ Alipay | WePay ]