承接 friendsofhyperf/http-request-lifecycle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

friendsofhyperf/http-request-lifecycle

最新稳定版本:v3.0.85

Composer 安装命令:

composer require friendsofhyperf/http-request-lifecycle

包简介

The http request lifecycle component for Hyperf.

README 文档

README

Latest Stable Version Total Downloads License

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 ]

统计信息

  • 总下载量: 6.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-07