PHPackages                             dunglas/torcontrol-bundle - 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/torcontrol-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

dunglas/torcontrol-bundle
=========================

Integration of PHP TorControl library in Symfony

v1.0.1(9y ago)13333MITPHPPHP &gt;=5.4

Since Aug 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/dunglas/DunglasTorControlBundle)[ Packagist](https://packagist.org/packages/dunglas/torcontrol-bundle)[ Docs](https://dunglas.fr/2013/03/dunglastorcontrolbundle-torcontrol-symfony-integration/)[ RSS](/packages/dunglas-torcontrol-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

DunglasTorControlBundle, TorControl Symfony integration
=======================================================

[](#dunglastorcontrolbundle-torcontrol-symfony-integration)

Use the [PHP TorControl library](http://dunglas.fr/2013/02/php-torcontrol-a-library-to-control-tor/) with [Symfony](http://symfony.com). TorControl allows to control a [Tor](https://www.torproject.org/) server.

[![Build Status](https://camo.githubusercontent.com/4735a2117647ce5e8cb271a68be020ae72d088a476038e221d2f55c8ad4d8e10/68747470733a2f2f7472617669732d63692e6f72672f64756e676c61732f44756e676c6173546f72436f6e74726f6c42756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dunglas/DunglasTorControlBundle)[![SensioLabsInsight](https://camo.githubusercontent.com/a687763167b9fb0f87bb96d7654de1428673288dde6a5a7177035c204a348453/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39613239653633322d383530302d346234382d393265652d6433333539353431306438622f6d696e692e706e67)](https://insight.sensiolabs.com/projects/9a29e632-8500-4b48-92ee-d33595410d8b)[![StyleCI](https://camo.githubusercontent.com/5c12df228693f88c45b778415043c036212d6b76aac74b766963d4c4043ff415/68747470733a2f2f7374796c6563692e696f2f7265706f732f383631353633302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/8615630)

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

[](#installation)

Use [Composer](http://getcomposer.org/) to install this bundle:

```
composer require dunglas/torcontrol-bundle

```

Add the bundle to the application kernel:

```
$bundles = array(
    // ...
    new Dunglas\TorControlBundle\DunglasTorControlBundle(),
);
```

Configuration
-------------

[](#configuration)

```
# app/config/config.yml
dunglas_tor_control:
    # Hostname or IP of the Tor server (default to localhost)
    hostname: ~
    # Port (default to 9051)
    port: ~
    # "null" for no authentication, "password" for password auth, "cookie" for cookie file auth (default to autodetect)
    authmethod: "null"
    # Password to use if the password auth method is used (no default)
    password: ~
    # Cookie file is this auth method is used (no default)
    cookiefile: ~
    # Connection timeout (default to php.ini setting)
    timeout: ~
```

Usage
-----

[](#usage)

```
// Get an instance of the PHP TorControl library as a service
$tc = $this->get('torcontrol');
```

Credits
-------

[](#credits)

This bundle has been written by [Kévin Dunglas](http://dunglas.fr).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1248 days

Total

2

Last Release

3444d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57224?v=4)[Kévin Dunglas](/maintainers/dunglas)[@dunglas](https://github.com/dunglas)

---

Top Contributors

[![dunglas](https://avatars.githubusercontent.com/u/57224?v=4)](https://github.com/dunglas "dunglas (12 commits)")[![mmoreram](https://avatars.githubusercontent.com/u/521409?v=4)](https://github.com/mmoreram "mmoreram (1 commits)")

---

Tags

symfonysymfony-bundletorsymfonytor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dunglas-torcontrol-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dunglas-torcontrol-bundle/health.svg)](https://phpackages.com/packages/dunglas-torcontrol-bundle)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
