saraf / async-request-snitch
Installs: 2 085
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 1
pkg:composer/saraf/async-request-snitch
Requires
- react/event-loop: >=1
- react/http: >=1
- saraf/async-request: dev-main
This package is auto-updated.
Last update: 2025-10-19 11:07:07 UTC
README
It's a really simple api based proxy to bypass sanctions or anything else like that!
How to deploy?
Docker
This project is shipped with Dockerfile! Just build it with below command:
> docker build -t snitch-proxy .
CLI
First you should install php with composer. you need at least php 8 and above. Then run below commands to
start project:
> composer install > php server.php
How to use?
It works in any language you think of. Just replace the url and put it in X-Proxy-To header.
for example in curl:
curl --location 'http://127.0.0.1:9898' \ --header 'X-Proxy-To: https://jsonplaceholder.typicode.com/todos/200' \ --header 'X-Proxy-Config: {"timeout": 1}'
additional configurations should go into X-Proxy-Config. config values are:
{
"timeout": 10,
"followRedirects": true
}
timeout: the maximum time to wait for response from destination addressfollowRedirects: enable or disable follow redirects