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.