Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/palmtreephp/http
:palm_tree: HTTP Component for Palmtree PHP
https://github.com/palmtreephp/http
composer-package http php
Last synced: 2 days ago
JSON representation
:palm_tree: HTTP Component for Palmtree PHP
- Host: GitHub
- URL: https://github.com/palmtreephp/http
- Owner: palmtreephp
- License: mit
- Created: 2016-10-25T11:11:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-18T17:10:47.000Z (over 5 years ago)
- Last Synced: 2024-05-05T13:22:30.797Z (6 months ago)
- Topics: composer-package, http, php
- Language: PHP
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();```