{"id":37266025,"url":"https://github.com/frdl/proxy","last_synced_at":"2026-01-16T00:31:55.711Z","repository":{"id":62507157,"uuid":"256329638","full_name":"frdl/proxy","owner":"frdl","description":"php proxy scripts","archived":false,"fork":false,"pushed_at":"2024-09-01T20:23:00.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-03T22:08:38.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://webfan.de/install/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frdl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T21:04:48.000Z","updated_at":"2024-10-05T12:02:21.000Z","dependencies_parsed_at":"2023-02-16T19:01:17.987Z","dependency_job_id":null,"html_url":"https://github.com/frdl/proxy","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/frdl/proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frdl","download_url":"https://codeload.github.com/frdl/proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frdl%2Fproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28421212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T00:31:54.800Z","updated_at":"2026-01-16T00:31:55.704Z","avatar_url":"https://github.com/frdl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# frdl/proxy\nSimple Php Proxy based on Guzzle.\n\n## Installation\nUse Composer...\n````\ncomposer require frdl/proxy\n````\n...or the [Webfan Installer](https://frdl.webfan.de/install/php/) if you would like to build a larger project.\n\n## Usage\n\n````php\n\u003c?php\nuse frdl\\Proxy\\Proxy;\n\n require 'vendor/autoload.php'; \n \n \t$proxy = (new Proxy(null,\n                      $_SERVER['REQUEST_URI'],\n                      'green.example.com',  //target host\n                      $_SERVER['HTTP_HOST'],  //User Input, forward optionaly*\n                      $_SERVER['REQUEST_METHOD'], \n                      'https', \n                      false))\n        -\u003ewithFakeHost(true) //*Do overwrite/not use users host header\n        //...or...\n        -\u003ewithFakeHeader('X-Forwarded-Host')\n    ;\n    \n\t$proxy-\u003ehandle(true);\n````\n\nInternally the proxy ignores the `bounce`-detection silently to fallback to any localhost scripts.\nYou can use it before/without handling the HTTP-Forwarding, e.g. to perform a (test-)request on the same host.\n````php\n\u003c?php\nif(!$proxy-\u003ebounce()){\t\n \t$proxy = (new Proxy('blue',\n                      $_SERVER['REQUEST_URI'],\n                      'blue.example.com',  //target host\n                      'example.com',  //set the host header on the target script\n                      $_SERVER['REQUEST_METHOD'], \n                      'https', \n                      true))\n  -\u003ehandle(true);                    \n}\n````\n\n### Cache\nBuilt in cache feature:\n````\ncomposer require doctrine/cache\n````\n````php\n$proxy-\u003ewithCacheDir(string $dir = null, int $ttl= 1800, bool $force=true)\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrdl%2Fproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrdl%2Fproxy/lists"}