You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
# PHP Proxy
1
+
# PHP Request Proxy
2
+
3
+
> This package is forked from `jenssegers/php-proxy` and modified. It is not compatible with the original package. Basically the original package is not maintained anymore thats why I forked it.
This is a HTTP/HTTPS proxy script that forwards requests to a different server and returns the response. The Proxy class uses PSR7 request/response objects as input/output, and uses Guzzle to do the actual HTTP request.
6
7
@@ -9,17 +10,17 @@ This is a HTTP/HTTPS proxy script that forwards requests to a different server a
9
10
Install using composer:
10
11
11
12
```
12
-
composer require jenssegers/proxy
13
+
composer require nahid/request-proxy
13
14
```
14
15
15
16
## Example
16
17
17
18
The following example creates a request object, based on the current browser request, and forwards it to `example.com`. The `RemoveEncodingFilter` removes the encoding headers from the original response so that the current webserver can set these correctly.
18
19
19
20
```php
20
-
use Proxy\Proxy;
21
-
use Proxy\Adapter\Guzzle\GuzzleAdapter;
22
-
use Proxy\Filter\RemoveEncodingFilter;
21
+
use Nahid\RequestProxy\Proxy;
22
+
use Nahid\RequestProxy\Adapter\Guzzle\GuzzleAdapter;
23
+
use Nahid\RequestProxy\Filter\RemoveEncodingFilter;
23
24
use Laminas\Diactoros\ServerRequestFactory;
24
25
25
26
// Create a PSR7 request based on the current browser request.
0 commit comments