Readme and makefile

This commit is contained in:
Simon Vieille 2017-11-08 20:43:46 +01:00
parent 0d74eaa1eb
commit 428d2e5cab
No known key found for this signature in database
GPG Key ID: 919533E2B946EA10
2 changed files with 18 additions and 1 deletions

View File

@ -5,4 +5,4 @@ all:
$(COMPOSER) install
server:
$(PHP) -S 127.0.0.1:8080 -t .
$(PHP) -S 127.0.0.1:8080 index.php

17
README.md Normal file
View File

@ -0,0 +1,17 @@
A simple PHP HTTP proxy.
# Installation
```
$ git clone https://gitnet.fr/deblan/poc-api-proxy.git
$ export COMPOSER=/path/to/composer # default is "composer"
$ make install
```
## Usage
```
$ export PHP_PROXY_REMOTEHOST=https://example.tld
$ export PHP=/path/to/php # default is "php"
$ make server
```