PHPackages                             dunglas/php-torcontrol - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dunglas/php-torcontrol

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dunglas/php-torcontrol
======================

Tor control library

v1.0.1(10y ago)895.3k19[1 PRs](https://github.com/dunglas/php-torcontrol/pulls)1MITPHPPHP &gt;=5.4

Since Aug 20Pushed 7y ago8 watchersCompare

[ Source](https://github.com/dunglas/php-torcontrol)[ Packagist](https://packagist.org/packages/dunglas/php-torcontrol)[ Docs](https://dunglas.fr)[ RSS](/packages/dunglas-php-torcontrol/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (1)

PHP TorControl, a library to control TOR
========================================

[](#php-torcontrol-a-library-to-control-tor)

TorControl is a PHP library to control a [Tor](https://www.torproject.org/) server.

[![Build Status](https://camo.githubusercontent.com/8149b1cd7499169fecd2cef32389e730671382b6197cdfb4f82d44c814db35dd/68747470733a2f2f7472617669732d63692e6f72672f64756e676c61732f7068702d746f72636f6e74726f6c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/dunglas/php-torcontrol)[![SensioLabsInsight](https://camo.githubusercontent.com/ef29acaf7e75dae22f42025f277d3ba60662ac0ede3777deb2fdc00b36f09d97/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38323833386462382d656666362d343262622d623462362d6332643132386136326439382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/82838db8-eff6-42bb-b4b6-c2d128a62d98)[![StyleCI](https://camo.githubusercontent.com/ca48b03eb0fa0d31368a24f5ae5244baa5ffd5163f6f213126c3d738ee5ef970/68747470733a2f2f7374796c6563692e696f2f7265706f732f383338323633302f736869656c64)](https://styleci.io/repos/8382630)

Features
--------

[](#features)

- Connect to a Tor server through network socket, SSL network socket or UNIX socket
- Support null, password and cookie file authentication methods
- Automatic authentication for null and cookie file methods
- Multi-line replies
- Unit-tested with PHPUnit
- Installation with Composer

Installation
------------

[](#installation)

Note: if you use the [Symfony](http://symfony.com) framework, you should use [DunglasTorControlBundle](https://github.com/dunglas/DunglasTorControlBundle).

If not already done, install [Composer](http://getcomposer.org/).

Add php-torcontrol to your `composer.json`:

```
composer require dunglas/php-torcontrol

```

Usage
-----

[](#usage)

```
