palmtree / http
HTTP component for Palmtree PHP
v2.0.0
2017-07-07 16:35 UTC
This package is auto-updated.
Last update: 2024-11-19 10:18:08 UTC
README
Http component for Palmtree PHP
Requirements
- PHP >= 5.6
Installation
Use composer to add the package to your dependencies:
composer require palmtree/csv
Usage
RemoteUser
<?php $user = new Palmtree\Http\RemoteUser(); $user->setTrustedIpHeaders(['HTTP_X_FORWARDED_FOR']); // optional for load balancers etc. $user->getIpAddress(); $user->getUserAgent();