{"id":19675828,"url":"https://github.com/progerxp/phisocks","last_synced_at":"2026-06-21T18:31:28.118Z","repository":{"id":28864853,"uuid":"32389008","full_name":"ProgerXP/Phisocks","owner":"ProgerXP","description":"SOCKS4/4a/5/5h client implementation for PHP 5.2+","archived":false,"fork":false,"pushed_at":"2021-01-27T17:00:01.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-26T12:03:09.067Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProgerXP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-17T11:16:46.000Z","updated_at":"2024-03-16T20:52:11.000Z","dependencies_parsed_at":"2022-09-05T18:50:06.819Z","dependency_job_id":null,"html_url":"https://github.com/ProgerXP/Phisocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ProgerXP/Phisocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgerXP%2FPhisocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgerXP%2FPhisocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgerXP%2FPhisocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgerXP%2FPhisocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProgerXP","download_url":"https://codeload.github.com/ProgerXP/Phisocks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProgerXP%2FPhisocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34622271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-11T17:26:01.996Z","updated_at":"2026-06-21T18:31:28.103Z","avatar_url":"https://github.com/ProgerXP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phisocks\n**SOCKS4/4a/5/5h client implementation for PHP 5.2+**\n\nStandalone using native PHP sockets.\n\nSupports basic authentication and **CONNECT** command.\n\nSupports TCP and IPv4 only.\n\nSwitch between 4(5) and 4a(5h) by adjusting `$remoteDNS`.\n\nConsult source code for detailed configuration info.\n\nReleased in public domain.\n\n* SOCKS 4 spec:   http://www.openssh.com/txt/socks4.protocol\n* SOCKS 4a spec:  http://www.openssh.com/txt/socks4a.protocol\n* SOCKS 5 spec:   https://www.ietf.org/rfc/rfc1928.txt\n* SOCKS 5h is (per cURL definition) SOCKS 5 with remote DNS resolution\n* SOCKS 5 Username/Password auth spec:  https://tools.ietf.org/html/rfc1929\n\n## Usage example\n\n```PHP\n// Create new instance and set it up.\n$phisocks = Phisocks::make('127.0.0.1');\n$phisocks-\u003eremoteDNS = true;\n$phisocks-\u003ebasicAuth('socksy', 'sassy');\n\n// Open remote connection to SOCKS server which opens it to the target\n// (google.com:80) and fails on error.\n$phisocks-\u003econnect('google.com', 443);\n\n// For plain HTTP requests this is not necessary but if HTTPS is expected\n// you will get blank response without enavling client crypto.\n$phisocks-\u003eenableCrypto();\n\n// Everything is up to the plan - tunnel some data. HTTP here is just\n// an example.\necho $phisocks-\u003ehttpGET('/');\n\n// Connection will also be dropped when the object is destroyed.\n$phisocks-\u003eclose();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogerxp%2Fphisocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogerxp%2Fphisocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogerxp%2Fphisocks/lists"}