定制 b13/http2 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

b13/http2

Composer 安装命令:

composer require b13/http2

包简介

HTTP2 Server Push Support for TYPO3 - Speed up TYPO3 rendering via HTTP/2 Server Push

README 文档

README

Latest Version on Packagist Software License Build Status

This TYPO3 extension fetches all CSS and JS resources that are used for a page-rendering and sends additional HTTP/2 Headers "Link" for each resource resulting in a faster first contentful paint for TYPO3 CMS.

This extension currently runs on TYPO3 v10, TYPO3 v11 and TYPO3 v12, and needs PHP 7.4 or higher.

Installation

Just use composer req b13/http2 and install the extension via the Extension Manager, flush caches and you're ready to go.

In order to see if the extension works, ensure that your webserver supports HTTP/2, runs via HTTPS and check your Response headers to see if "link: " headers are added to your HTTP response.

Nothing to configure, it just works(tm).

Requirements

You need a webserver with HTTP/2 support, and - of course - HTTPS.

Also, use PHP7 - if you care about performance or supported PHP versions, there is nothing to discuss.

How it works under the hood

  1. Hook into the "PageRenderer" API class by fetching the concatenated CSS / JS files, and libraries.
  2. If in FE, this is stored within TSFE together with cached data (could be run twice here for non-cached info)
  3. Send to the client via header() - in BE directly or in FE at the end of the request via a PSR-15 middleware (TYPO3 v10+ only).

ToDo

  • Implement options to also allow to define other resources (fonts/images), e.g. via TypoScript.
  • Use proper DTOs instead of arrays.

Credits

License

As this is a PHP project, extending TYPO3, all code is licensed as GPL v2+.

Sharing our expertise

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.

b13/http2 适用场景与选型建议

b13/http2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 359.67k 次下载、GitHub Stars 达 23, 最近一次更新时间为 2018 年 12 月 30 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 b13/http2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 b13/http2 我们能提供哪些服务?
定制开发 / 二次开发

基于 b13/http2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 23
  • Watchers: 11
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2018-12-30