PHPackages                             sam-it/proxy - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sam-it/proxy

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sam-it/proxy
============

Implementation of the proxy protocol

v0.5.0(9y ago)742321MITPHP

Since Sep 29Pushed 9y ago2 watchersCompare

[ Source](https://github.com/SAM-IT/php-proxy-protocol)[ Packagist](https://packagist.org/packages/sam-it/proxy)[ RSS](/packages/sam-it-proxy/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (3)Versions (9)Used By (1)

php-proxy-protocol
==================

[](#php-proxy-protocol)

Implementation of HAProxy v1 and v2

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7c31033cd5142dfb98ae03743fd60b2b1a00a8a3fe21173ad0fe82b5490681a4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53414d2d49542f7068702d70726f78792d70726f746f636f6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SAM-IT/php-proxy-protocol/?branch=master)[![Build Status](https://camo.githubusercontent.com/86e3c32e63e3141079c39fff4f7ea0fab6daf263ca4cf2712c25bdb0f2abf719/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53414d2d49542f7068702d70726f78792d70726f746f636f6c2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SAM-IT/php-proxy-protocol/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/bddb5dc154cb5875447e01a169048826a3cdb27e507bf538b958717e265a2bea/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53414d2d49542f7068702d70726f78792d70726f746f636f6c2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SAM-IT/php-proxy-protocol/?branch=master)

Example of forwarding requests to NGINX
=======================================

[](#example-of-forwarding-requests-to-nginx)

This example illustrates how to create a reverse proxy server that forwards all requests to an NGINX server.

Test script
-----------

[](#test-script)

```
