1
1
PHP HTTP Tools
2
2
=======================================
3
3
4
- PHP HTTP Tool kit that brings common functionality in a standarized way,
5
- supporting PSR-7 and PSR-17 standards .
4
+ PHP HTTP Tool kit that brings common functionality in a standard way,
5
+ supporting PSR-7 and PSR-17.
6
6
7
7
Installation
8
8
---------------------------------------
@@ -16,12 +16,12 @@ composer install francerz/php-http-tools
16
16
Featured functionality
17
17
----------------------------------------
18
18
19
- ### HttpFactoryManager class
19
+ ### HttpFactoryManager class
20
20
21
21
Preserve per instance, reference of PSR-17 Factories (psr/http-factory).
22
22
Uses set and get methods to manage existing factory instances.
23
23
24
- #### Individual setter methods
24
+ #### Individual setter methods
25
25
26
26
- ` setRequestFactory(RequestFactoryInterface $requestFactory) `
27
27
- ` setResponseFactory(ResponseFactoryInterface $responseFactory) `
@@ -41,15 +41,15 @@ previously.
41
41
- ` getUploadedFileFactory() : UploadedFileFactoryInterface `
42
42
- ` getUriFactory() : UriFactoryInterface `
43
43
44
- #### Automatic setter method
44
+ #### Automatic setter method
45
45
46
46
The method ` setMatchingFactories($factoryObject) ` receives an object and
47
47
checks implementation of each Factory Interface. All matching interfaces
48
48
will be set.
49
49
50
50
This method is included on the constructor to quick factory setting.
51
51
52
- ### UriHelper class
52
+ ### UriHelper class
53
53
54
54
Provides methods for common manipulation to ` UriInterface ` objects.
55
55
@@ -70,24 +70,24 @@ Provides methods for common manipulation to `UriInterface` objects.
70
70
- ` getQueryParams(UriInterface $uri) : array `
71
71
- ` getQueryParam(UriInterface $uri, string $key) : ?string `
72
72
73
- #### Fragment part manipulation
73
+ #### Fragment part manipulation
74
74
75
75
- ` withFragmentParam(UriInterface $uri, string $key, $value) : UriInterface `
76
76
- ` withFragmentParams(UriInterface $uri, array $params, $replace = true) : UriInterface `
77
77
- ` withoutFragmentParam(UriInterface $uri, string $key, &$value = null) : UriInterface `
78
78
- ` getFragmentParams(UriInterface $uri) : array `
79
79
- ` getFragmentParam(UriInterface $uri, string $key) : ?string `
80
80
81
- ### MessageHelper class
81
+ ### MessageHelper class
82
82
83
83
Provides methods for common manipulation to ` MessageInterface ` objects.
84
84
85
- #### Helper setup
85
+ #### Helper setup
86
86
87
87
- ` setHttpFactoryManager(HttpFactoryManager $factories) `
88
88
- ` setAuthenticationSchemes(array $authenticationSchemeClasses) `
89
89
90
- #### Creating a request object from server parameters
90
+ #### Creating a request object from server parameters
91
91
92
92
- ` getCurrentRequest() : RequestInterface `
93
93
0 commit comments