Skip to content

Commit 9635c5d

Browse files
committed
Minor readme tweak
1 parent c13550f commit 9635c5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ including GET, POST requests with files, PATCH and PUT requests. It has minimal
55
(PHP >=5.6, libcurl, gzip) which are available even on the smallest free hostings and has its own simple authorization
66
and cookie support.
77

8-
## How to use (via copying the script)
9-
* Copy the [Proxy.php](Proxy.php) script to publicly-accessible folder of a PHP web server
8+
## How to use
9+
* Copy the [Proxy.php](Proxy.php) script to publicly-accessible folder of a PHP web server (the script is standalone and has no PHP dependencies)
1010
* Make a cURL request targeting this script
1111
* Add **Proxy-Auth** header with auth key [found here](https://github.com/zounar/php-proxy/blob/master/Proxy.php#L40)
1212
* Add **Proxy-Target-URL** header with URL to be requested by the proxy
@@ -15,6 +15,8 @@ and cookie support.
1515
In order to protect using proxy by unauthorized users, consider changing `Proxy-Auth` token in [proxy source file](https://github.com/zounar/php-proxy/blob/master/Proxy.php#L40) and in all your requests.
1616

1717
## How to use (via composer)
18+
This might be useful when you want to redirect requests coming into your app.
19+
1820
* Run `composer require zounar/php-proxy`
1921
* Add `Proxy::run();` line to where you want to execute it (usually into a controller action)
2022
* In this example, the script is in `AppController` - `actionProxy`:

0 commit comments

Comments
 (0)