Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dunglas/dunglastorcontrolbundle
Integration of PHP TorControl library in Symfony
https://github.com/dunglas/dunglastorcontrolbundle
symfony symfony-bundle tor
Last synced: 23 days ago
JSON representation
Integration of PHP TorControl library in Symfony
- Host: GitHub
- URL: https://github.com/dunglas/dunglastorcontrolbundle
- Owner: dunglas
- License: mit
- Created: 2013-03-06T23:17:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T09:30:36.000Z (almost 8 years ago)
- Last Synced: 2024-10-10T16:47:45.277Z (about 1 month ago)
- Topics: symfony, symfony-bundle, tor
- Language: PHP
- Homepage: http://dunglas.fr/2013/03/dunglastorcontrolbundle-torcontrol-symfony-integration/
- Size: 11.7 KB
- Stars: 13
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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://travis-ci.org/dunglas/DunglasTorControlBundle.svg?branch=master)](https://travis-ci.org/dunglas/DunglasTorControlBundle)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/9a29e632-8500-4b48-92ee-d33595410d8b/mini.png)](https://insight.sensiolabs.com/projects/9a29e632-8500-4b48-92ee-d33595410d8b)
[![StyleCI](https://styleci.io/repos/8615630/shield?branch=master)](https://styleci.io/repos/8615630)Installation
------------Use [Composer](http://getcomposer.org/) to install this bundle:
composer require dunglas/torcontrol-bundle
Add the bundle to the application kernel:
```php
$bundles = array(
// ...
new Dunglas\TorControlBundle\DunglasTorControlBundle(),
);
```Configuration
-------------```yaml
# 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
-----```php
// 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](http://dunglas.fr).