{"id":13521714,"url":"https://github.com/dunglas/php-torcontrol","last_synced_at":"2025-05-10T19:58:14.582Z","repository":{"id":7091634,"uuid":"8382630","full_name":"dunglas/php-torcontrol","owner":"dunglas","description":"PHP TorControl, a library to control TOR","archived":false,"fork":false,"pushed_at":"2018-08-09T13:01:50.000Z","size":396,"stargazers_count":88,"open_issues_count":1,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-09T12:09:24.559Z","etag":null,"topics":["php","tor"],"latest_commit_sha":null,"homepage":"http://dunglas.fr/2013/02/php-torcontrol-a-library-to-control-tor/","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/dunglas.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":"2013-02-23T22:04:44.000Z","updated_at":"2024-09-23T13:36:03.000Z","dependencies_parsed_at":"2022-08-19T17:30:39.842Z","dependency_job_id":null,"html_url":"https://github.com/dunglas/php-torcontrol","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunglas%2Fphp-torcontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunglas%2Fphp-torcontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunglas%2Fphp-torcontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunglas%2Fphp-torcontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunglas","download_url":"https://codeload.github.com/dunglas/php-torcontrol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253248468,"owners_count":21877906,"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":["php","tor"],"created_at":"2024-08-01T06:00:37.438Z","updated_at":"2025-05-09T12:09:31.605Z","avatar_url":"https://github.com/dunglas.png","language":"PHP","readme":"PHP TorControl, a library to control TOR\n========================================\n\nTorControl is a PHP library to control a [Tor](https://www.torproject.org/) server.\n\n[![Build Status](https://travis-ci.org/dunglas/php-torcontrol.png?branch=master)](https://travis-ci.org/dunglas/php-torcontrol)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/82838db8-eff6-42bb-b4b6-c2d128a62d98/mini.png)](https://insight.sensiolabs.com/projects/82838db8-eff6-42bb-b4b6-c2d128a62d98)\n[![StyleCI](https://styleci.io/repos/8382630/shield)](https://styleci.io/repos/8382630)\n\nFeatures\n--------\n\n* Connect to a Tor server through network socket, SSL network socket or UNIX socket\n* Support null, password and cookie file authentication methods\n* Automatic authentication for null and cookie file methods\n* Multi-line replies\n* Unit-tested with PHPUnit\n* Installation with Composer\n\nInstallation\n------------\n\nNote: if you use the [Symfony](http://symfony.com) framework, you should use [DunglasTorControlBundle](https://github.com/dunglas/DunglasTorControlBundle).\n\nIf not already done, install [Composer](http://getcomposer.org/).\n\nAdd php-torcontrol to your `composer.json`:\n\n    composer require dunglas/php-torcontrol\n\nUsage\n-----\n\n```php\n\u003c?php\n\n// Autoloading using composer\nrequire 'vendor/autoload.php';\n\n// Connect to the TOR server using password authentication\n$tc = new TorControl\\TorControl(\n    array(\n        'hostname' =\u003e 'localhost',\n        'port'     =\u003e 9051,\n        'password' =\u003e 'MySecr3tPassw0rd',\n        'authmethod' =\u003e 1\n    )\n);\n\n$tc-\u003econnect();\n\n$tc-\u003eauthenticate();\n\n// Renew identity\n$res = $tc-\u003eexecuteCommand('SIGNAL NEWNYM');\n\n// Echo the server reply code and message\necho $res[0]['code'].': '.$res[0]['message'];\n\n// Quit\n$tc-\u003equit();\n\n```\n\nRelated\n-------\n\n* [Tor Control protocol](https://gitweb.torproject.org/torspec.git/tree/control-spec.txt)\n\nCredits\n-------\n\nPHP TorControl has been created by [Kévin Dunglas](http://dunglas.fr).\n","funding_links":[],"categories":["Uncategorized","PHP","\u003ca id=\"6e80463404d46f0493cf6e84597e4b5c\"\u003e\u003c/a\u003e工具","Applications"],"sub_categories":["Uncategorized","\u003ca id=\"e99ba5f3de02f68412b13ca718a0afb6\"\u003e\u003c/a\u003eTor\u0026\u0026\u0026Onion\u0026\u0026洋葱","Other applications"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunglas%2Fphp-torcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunglas%2Fphp-torcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunglas%2Fphp-torcontrol/lists"}