DunglasTorControlBundle, TorControl Symfony integration

I’ve just released a new Symfony bundle to use easily the PHP TorControl library with the framework. TorControl is a library I’ve wrote designed to control a Tor server using the control socket.

Install the bundle using Composer. Type this command in your Symfony project directory:

composer require dunglas/torcontrol-bundle:dev-master

Enable the bundle, edit your app/config.yml to match your Tor server configuration (look at the README.md file) and get a TorControl instance using the Symfony’s service container. In a controller implementing the ContainerAware interface:

$tc = $this->get(‘torcontrol’);

As usual, you can download the bundle and its documentation on GitHub.


  1. […] One example of these sites that is currently making me go crazy is hire writers dot com / signup / writer (sorry for writing it in this format, but I didn’t want backlinks to originate from here). When I try opening the page, I get an error. Something about a symfony project…. I believe this site may address something vital about it ( http://dunglas.fr/2013/03/dunglastorcontrolbundle-torcontrol-symfony-integration/) […]


Leave a Reply