Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/palmtreephp/http

:palm_tree: HTTP Component for Palmtree PHP
https://github.com/palmtreephp/http

composer-package http php

Last synced: about 1 month ago
JSON representation

:palm_tree: HTTP Component for Palmtree PHP

Awesome Lists containing this project

README

        

# Palmtree Http

Http component for Palmtree PHP

## Requirements
* PHP >= 5.6

## Installation

Use composer to add the package to your dependencies:
```bash
composer require palmtree/csv
```

## Usage

##### RemoteUser
```php
setTrustedIpHeaders(['HTTP_X_FORWARDED_FOR']); // optional for load balancers etc.

$user->getIpAddress();
$user->getUserAgent();

```