定制 f3-factory/fatfree-psr7 二次开发

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

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

f3-factory/fatfree-psr7

最新稳定版本:2.0.1

Composer 安装命令:

composer require f3-factory/fatfree-psr7

包简介

A fat-free PHP8 implementation of PSR-7 and PSR-17

README 文档

README

This is a lightweight PSR-7 implementation for PHP 8.0+.

Installation

composer require f3-factory/fatfree-psr7

Usage

The package includes a PSR-17 factory.

Use these factories according to specs to create Request, Response, Uri, Stream objects.

Tests

Run the test suite:

composer test

NB: Custom tests were mostly taken from Nyholm/psr7.

Benchmarks

Benchmarks done with devanych/psr-http-benchmark on php 8.0+.

Checkout benchmark branch, start docker composer, then run in container:

COMPOSER_ROOT_VERSION=1.0 composer update

Run benchmarks on php 8.0+:

cd benchmark/
php benchmark.php fatfree 50000

Test results (best of 3 on MacBook M2 Pro)

Runs: 50,000 Guzzle HttpSoft Laminas Nyholm Slim Fatfree
Runs per second 14412 18608 17641 20549 14444 22233
Average time per run 0.0694 ms 0.0537 ms 0.0567 ms 0.0487 ms 0.0692 ms 0.0450 ms
Total time 3.4691 s 2.6869 s 2.8342 s 2.4331 s 3.4616 s 2.2488 s

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固