{"id":16824159,"url":"https://github.com/gared/tor-directory-client","last_synced_at":"2025-03-17T18:21:57.699Z","repository":{"id":62509091,"uuid":"472511041","full_name":"Gared/tor-directory-client","owner":"Gared","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-19T23:05:40.000Z","size":588,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T05:29:51.838Z","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/Gared.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":"2022-03-21T21:01:39.000Z","updated_at":"2024-02-26T01:56:03.000Z","dependencies_parsed_at":"2022-11-02T13:00:38.535Z","dependency_job_id":null,"html_url":"https://github.com/Gared/tor-directory-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gared%2Ftor-directory-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gared%2Ftor-directory-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gared%2Ftor-directory-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gared%2Ftor-directory-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gared","download_url":"https://codeload.github.com/Gared/tor-directory-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085024,"owners_count":20395523,"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":[],"created_at":"2024-10-13T11:10:17.547Z","updated_at":"2025-03-17T18:21:57.678Z","avatar_url":"https://github.com/Gared.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tor-directory-client \r\n\r\nUse this PHP library to request tor directory information \r\n\r\n## Installation\r\n\r\nUse composer\r\n```console\r\ncomposer require gared/tor-directory-client\r\n```\r\n\r\n## Getting started\r\n\r\n### Usage\r\n\r\n```php\r\n$client = new \\Gared\\TorDirectoryClient\\Client();\r\n$serverDescriptor = $client-\u003egetServerDescriptor('FINGERPRINTABC');\r\n\r\n// get consensus data\r\n$routerDescriptors = $client-\u003egetConsensus();\r\n\r\n// get consensus data\r\n$votes = $client-\u003egetAllVotes();\r\nforeach ($votes as $vote) {\r\n    foreach ($vote as $routerDescriptor) {\r\n        echo $routerDescriptor-\u003egetFingerprint();    \r\n    }\r\n}\r\n```\r\n\r\n## Supported Platforms\r\n\r\n* You need at least PHP 7.4\r\n\r\n## Supported Requests\r\n| API                                | Code                            |\r\n|------------------------------------|---------------------------------|\r\n| /tor/status-vote/current/consensus | $client-\u003egetConsensus();        |\r\n| /tor/status-vote/current/authority | $client-\u003egetAllVotes();         |\r\n| /tor/server/fp/%s                  | $client-\u003egetServerDescriptor(); |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgared%2Ftor-directory-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgared%2Ftor-directory-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgared%2Ftor-directory-client/lists"}