PHPackages                             link1515/http-utils-php5 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. link1515/http-utils-php5

ActiveLibrary[HTTP &amp; Networking](/categories/http)

link1515/http-utils-php5
========================

For users working with PHP 5.x environments, this package provides a convenient solution. It provides encapsulated utilities for handling requests and responses.

1.0.5(2y ago)021MITPHPPHP &gt;= 5.3

Since Mar 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Link1515/http-utils-php5)[ Packagist](https://packagist.org/packages/link1515/http-utils-php5)[ RSS](/packages/link1515-http-utils-php5/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

http-utils-php5
===============

[](#http-utils-php5)

For users working with PHP 5.x environments, this package provides a convenient solution. It provides encapsulated utilities for handling requests and responses.

Feature
-------

[](#feature)

- Easy to use
- Compatible with PHP 5.x
- The request body of the PUT and PATCH method can be resolved (including multipart/form-data)

Installation
------------

[](#installation)

```
composer require link1515/http-utils-php5
```

Usage
-----

[](#usage)

### Request

[](#request)

   Return type Method     string getIp()   string getHost()   string getMethod()   array getHeaders(?string $dotNotation = null)   array|string getCookies(?string $dotNotation = null)   array|string getQueryString(?string $dotNotation = null)   array|string|null getBody(?string $dotNotation = null)   array|null getFiles(?string $dotNotation = null)   array toArray()  ```
