tinyproxy is a lightweight PHP proxy service with caching for fetching and serving web resources.
screenshots:
git clone https://github.com/bethropolis/tinyproxy.git
cd tinyproxy
composer install
php -S localhost:8080
I recommend using an
apache
server ornginx
server.
using docker:
docker build -t tinyproxy .
docker run -p 8080:80 --name tinyproxy-container tinyproxy
To use TinyProxy, simply make requests to the proxy URL with the url
parameter:
http://localhost:8080/?url=https://www.example.com
curl:
$ curl http://localhost:8080/?url=https://www.example.com
replace
localhost:8080
with your web server’s address.
parameter | description | type |
---|---|---|
url |
The URL to proxy. | string |
cache |
The cache directory. | bool |
for more customization edit the
config.php
file.
Contributions are welcome! If you find a bug or have an enhancement idea, please open an issue or submit a pull request.
TinyProxy is released under the MIT License. See LICENSE for details.
Happy proxying! 💜