Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
44% | Total: 438 | All time: 6,267 This week: 73 |
Version | License | PHP version | Categories | |||
proxy-server 1.1 | The PHP License | 5.0 | Networking, HTTP, PHP 5 |
Description | Author | |||
This class can forward HTTP requests to destination servers. Innovation Award
|
Standalone proxy server in PHP sockets, I am using Guzzle to route the requests. Idea was if I can make HTTP Proxy Server in php to get more control over proxy and custom logic. Currently it only supports http requests you can choose port of your own choice plus if you want to make it public or private. This is a standard HTTP Proxy so you can use in browser. By default its only working for localhost, but you can allow public ip's.
Define package in your composer.json file as require dependency
"require": {
"yousafsyed/standalone_php_proxy": "^v1.0"
}
Now update/install composer dependencies
$ composer install
$ composer update
Create a file server.php
require "./vendor/autoload.php";
use YousafSyed\ProxyServer;
$server = new ProxyServer(); // optional parameters for port and host like this new ProxyServer('8080','localhost')
// finally run the server
$server->run();
$ php server.php
Files (5) |
File | Role | Description | ||
---|---|---|---|---|
src (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | User Comments (2) | |||||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.