dunglas / torcontrol-bundle
Integration of PHP TorControl library in Symfony
Fund package maintenance!
dunglas
Installs: 331
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- dunglas/php-torcontrol: ^1.0
- symfony/config: ^2.3 || ^3.0
- symfony/dependency-injection: ^2.3 || ^3.0
- symfony/http-kernel: ^2.3 || ^3.0
Requires (Dev)
- phpunit/phpunit: ^4.6 || ^5.0
- symfony/finder: ^2.8 || ^3.0
- symfony/framework-bundle: ^2.8 || ^3.0
This package is auto-updated.
Last update: 2024-10-27 02:49:16 UTC
README
Use the PHP TorControl library with Symfony. TorControl allows to control a Tor server.
Installation
Use Composer to install this bundle:
composer require dunglas/torcontrol-bundle
Add the bundle to the application kernel:
$bundles = array( // ... new Dunglas\TorControlBundle\DunglasTorControlBundle(), );
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
// Get an instance of the PHP TorControl library as a service $tc = $this->get('torcontrol');
Credits
This bundle has been written by Kévin Dunglas.