Skip to content

Commit 0918e90

Browse files
author
Wazabii
committed
Update file
1 parent 72fd09f commit 0918e90

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
# MaplePHP - PSR-7 Http Message
2-
The library is fully integrated with PSR-7 Http Message and designed for use with MaplePHP framework.
1+
# MaplePHP - A Full-Featured PSR-7 Compliant HTTP Library
2+
MaplePHP/Http is a PHP library that brings simplicity and adherence to the PSR-7 standard into handling HTTP messages, requests, and responses within your web projects. It's thoughtfully designed to make the integration of crucial elements like Stream, Client, Cookies, UploadedFile, and Headers straightforward and efficient.
33

4+
By aligning closely with PSR-7, MaplePHP/Http facilitates better interoperability between web components, allowing for more effective communication within applications. Whether you're working with client-side cookies, managing headers in a request, or handling file uploads through UploadedFile, this library has got you covered, making these tasks more manageable and less time-consuming.
5+
6+
MaplePHP/Http aims to support your web development by offering a reliable foundation for working with HTTP messaging, streamlining the process of dealing with requests and responses. It's a practical choice for developers looking to enhance their applications with PSR-7 compliant HTTP handling in a user-friendly way.
7+
8+
9+
## Installation
10+
11+
```
12+
composer require maplephp/http
13+
```
414

515
## Initialize
6-
The example below is utilizing the "namespace" below just to more easily demonstrate the guide.
16+
The **examples** below is utilizing the "namespace" below just to more easily demonstrate the guide.
717

818
```php
919
use MaplePHP\Http;
1020
```
1121

22+
1223
## Request
1324

1425
```php
@@ -34,7 +45,7 @@ echo $uri->getUri(); // Get the full URI
3445
## Response
3546
Only the **(StreamInterface) Body** attribute is required and the rest will auto propagate if you leave them be.
3647
```php
37-
$request = new Http\Response(
48+
$response = new Http\Response(
3849
StreamInterface $body,
3950
?HeadersInterface $headers = null,
4051
int $status = 200,

0 commit comments

Comments
 (0)