f3-factory / fatfree-psr7
A fat-free PHP8 implementation of PSR-7 and PSR-17
1.0.0
2022-10-28 22:37 UTC
Requires
- php: >=8.0
- php-http/message-factory: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- http-interop/http-factory-tests: ^0.9.0
- php-http/psr7-integration-tests: dev-master
- phpunit/phpunit: ^9.5
Provides
This package is auto-updated.
Last update: 2024-10-29 03:31:26 UTC
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 and also supports HTTPlug.
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+.
Test results (Intel Xeon Gold 6140 CPU @ 2.30GHz, 4 cores):