{"id":16559824,"url":"https://github.com/ctubio/php-proxy-stratum","last_synced_at":"2026-03-08T16:05:31.200Z","repository":{"id":40533551,"uuid":"45810868","full_name":"ctubio/php-proxy-stratum","owner":"ctubio","description":"ReactPHP stratum+tcp proxy between miners and pools with database and frontend.","archived":false,"fork":false,"pushed_at":"2018-02-14T01:17:23.000Z","size":56,"stargazers_count":42,"open_issues_count":0,"forks_count":37,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-07T06:41:18.524Z","etag":null,"topics":["bitcoin","mining","proxy","reactphp","stratum-proxy","stratum-tcp"],"latest_commit_sha":null,"homepage":"","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/ctubio.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":"2015-11-09T02:44:29.000Z","updated_at":"2024-07-24T15:30:38.000Z","dependencies_parsed_at":"2022-09-05T22:40:39.855Z","dependency_job_id":null,"html_url":"https://github.com/ctubio/php-proxy-stratum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctubio/php-proxy-stratum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctubio%2Fphp-proxy-stratum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctubio%2Fphp-proxy-stratum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctubio%2Fphp-proxy-stratum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctubio%2Fphp-proxy-stratum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctubio","download_url":"https://codeload.github.com/ctubio/php-proxy-stratum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctubio%2Fphp-proxy-stratum/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260318706,"owners_count":22991120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitcoin","mining","proxy","reactphp","stratum-proxy","stratum-tcp"],"created_at":"2024-10-11T20:27:10.201Z","updated_at":"2026-03-08T16:05:31.171Z","avatar_url":"https://github.com/ctubio.png","language":"PHP","readme":"# php-proxy-stratum\nReactPHP **stratum+tcp** proxy between miners and pools with database and minimal web interface.\n\nUsed to demostrate how pools steal your hash by renaming worker names and redirecting the hashrate.\n\nUsed² to recommend you to mine only on trusted (self owned!) pools.\n\nBasically it may be run with the following command (remember first to install dependencies with ```$ composer```): \n```\n$ php bin/php-proxy-stratum-daemon.php\n```\nOr use the init script:\n```\n $ sudo cp dist/init.sh /etc/init.d/php-proxy-stratum\n $ sudo chmod +x /etc/init.d/php-proxy-stratum\n $ sudo update-rc.d php-proxy-stratum defaults\n $ sudo update-rc.d php-proxy-stratum enable\n $ sudo service php-proxy-stratum start\n```\nAnd feel free to connect your miners at port ```3333```, also you can configure your webserver with ```pub/``` as the document root and ```php-proxy-stratum.php``` as the index file.\n\nThe mining and all other configurations are hardcoded, please review/modify the daemon code before run it.\n\nCurrently the web interface features auto refresh and pool switch; a snapshot may look like (yes, is just json output):\n```\n2015-12-10 17:32:52\nwtfisconnected\n\n{\n    \"result\": [\n        {\n            \"key\": 27,\n            \"user\": \"analpaper.2\",\n            \"version\": \"cgminer\\/4.8.0\",\n            \"since\": \"2015-12-10T16:56:22+0000\",\n            \"last\": \"2015-12-10T17:32:46+0000\",\n            \"pool\": {\n                \"id\": 0,\n                \"url\": \"stratum.kano.is\",\n                \"port\": 3333,\n                \"user\": \"analpaper.0\",\n                \"pass\": \"x\"\n            },\n            \"pending\": [],\n            \"diff\": 3801,\n            \"2min avg\": \"5,71 TH\\/s\"\n        },\n        {\n            \"key\": 35,\n            \"user\": \"analpaper.3\",\n            \"version\": \"cgminer\\/4.8.0\",\n            \"since\": \"2015-12-10T16:56:24+0000\",\n            \"last\": \"2015-12-10T17:32:47+0000\",\n            \"pool\": {\n                \"id\": \"1\",\n                \"url\": \"stratum.kano.is\",\n                \"port\": \"3333\",\n                \"user\": \"analpaper.0\",\n                \"pass\": \"x\"\n            },\n            \"pending\": [],\n            \"diff\": 1042,\n            \"2min avg\": \"1,23 TH\\/s\"\n        }\n    ],\n    \"pid\": 22559,\n    \"mem\": \"1.5mb\"\n}\n```\n\nEnjoy:exclamation:\n\n#### Very special thanks to:\n- https://github.com/reactphp\n- https://github.com/slush0\n- https://github.com/ckolivas/cgminer\n- ~~https://www.btcguild.com/new_protocol.php~~ http://archive.is/CH9a0\n- https://en.bitcoin.it/wiki/Stratum_mining_protocol\n\n\n###### Donations\nnope. but you can donate to your favorite developer today! (or tomorrow!)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctubio%2Fphp-proxy-stratum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctubio%2Fphp-proxy-stratum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctubio%2Fphp-proxy-stratum/lists"}