@@ -16,28 +16,21 @@ A [PSR-7](https://www.php-fig.org/psr/psr-7/)/[PSR-17](https://www.php-fig.org/p
16
16
[ packagist ] : https://packagist.org/packages/chillerlan/php-httpinterface
17
17
[ license-badge ] : https://img.shields.io/github/license/chillerlan/php-httpinterface.svg
18
18
[ license ] : https://github.com/chillerlan/php-httpinterface/blob/main/LICENSE
19
+ [ gh-action-badge ] : https://img.shields.io/github/actions/workflow/status/chillerlan/php-httpinterface/ci.yml?branch=main&logo=github
20
+ [ gh-action ] : https://github.com/chillerlan/php-httpinterface/actions/workflows/ci.yml?query=branch%3Amain
19
21
[ coverage-badge ] : https://img.shields.io/codecov/c/github/chillerlan/php-httpinterface.svg?logo=codecov
20
22
[ coverage ] : https://codecov.io/github/chillerlan/php-httpinterface
21
23
[ codacy-badge ] : https://img.shields.io/codacy/grade/0ad3a5f9abe547cca5d5b3dff0ba3383?logo=codacy
22
24
[ codacy ] : https://app.codacy.com/gh/chillerlan/php-httpinterface/dashboard
23
25
[ downloads-badge ] : https://img.shields.io/packagist/dt/chillerlan/php-httpinterface.svg?logo=packagist
24
26
[ downloads ] : https://packagist.org/packages/chillerlan/php-httpinterface/stats
25
- [ gh-action-badge ] : https://img.shields.io/github/actions/workflow/status/chillerlan/php-httpinterface/ci.yml?branch=main&logo=github
26
- [ gh-action ] : https://github.com/chillerlan/php-httpinterface/actions/workflows/ci.yml?query=branch%3Amain
27
+
27
28
28
29
# Documentation
29
30
30
31
See [ the wiki] ( https://github.com/chillerlan/php-httpinterface/wiki ) for advanced documentation.
31
32
An API documentation created with [ phpDocumentor] ( https://www.phpdoc.org/ ) can be found at https://chillerlan.github.io/php-httpinterface/ (WIP).
32
33
33
- ** NOTE: This library has abandoned the silly "immuatbility" that is dictated by PSR-7 for it is horseshit.
34
- Fluent interfaces just don't work like that, the pseudo-immutability gets in the way more often (always) than it is useful (never).
35
- If you want your fluent objects to be immutable for whatever reason, just fucking clone them
36
- and don't force countless libraries to do that for you instead. If you don't like it, just use Guzzle instead.**
37
-
38
- Further, it still only implements [ ` psr/http-message ` ] ( https://packagist.org/packages/psr/http-message ) v1.1,
39
- as the v2.0 release from 06/2023 has return types added [ that conflict] ( https://github.com/php-fig/http-message/pull/107 )
40
- with the PHP 8 [ ` static ` return type] ( https://wiki.php.net/rfc/static_return_type ) .
41
34
42
35
## Requirements
43
36
- PHP 8.1+
@@ -47,6 +40,7 @@ with the PHP 8 [`static` return type](https://wiki.php.net/rfc/static_return_typ
47
40
- [ ` ext-simplexml ` ] ( https://www.php.net/manual/book.simplexml.php )
48
41
- [ ` ext-zlib ` ] ( https://www.php.net/manual/book.zlib.php )
49
42
43
+
50
44
## Installation
51
45
** requires [ composer] ( https://getcomposer.org ) **
52
46
@@ -64,9 +58,7 @@ In case you want to keep using `dev-main`, specify the hash of a commit to avoid
64
58
65
59
Profit!
66
60
67
- ## License information
68
61
69
- This library contains portions of code (especially tests) from the following libraries:
70
- - [ Guzzle PSR-7] ( https://github.com/guzzle/psr7 ) (MIT)
71
- - [ Slim] ( https://github.com/slimphp/Slim ) (MIT)
72
- - [ caridea-dispatch ] ( https://github.com/libreworks/caridea-dispatch ) (Apache)
62
+ ## Disclaimer
63
+
64
+ Use at your own risk!
0 commit comments