2017 © Pedro Peláez
 

library tor-bundle

TOR provider

image

grcs/tor-bundle

TOR provider

  • Thursday, November 13, 2014
  • by Graceas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

GrcsTorBundle

License:, (*1)

see LICENSE

Installation

1) Add TorBundle to your vendor/ dir, (*2)

Through composer:, (*3)

"require": {
    ...
    "grcs/tor-bundle": "dev-master"
    ...
}

2) Add TorBundle to your application kernel, (*4)

// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new Grcs\TorBundle\GrcsTorBundle(),
        // ...
    );
}

4) Install TOR https://www.torproject.org/docs/tor-doc-unix.html.en, (*5)

5) Configure TOR, (*6)

// add to /patch/to/etc/tor/torrc

ControlPort 9051

6) Run TOR, (*7)

7) Use, (*8)

$tor = $this->get('grcs.tor');
$tor->getNewIpAddress();

Curl:
$options = array(
    CURLOPT_URL            => 'http://google.com',
    CURLOPT_HEADER         => false,
    CURLOPT_TIMEOUT        => 30,
    CURLOPT_CONNECTTIMEOUT => 30,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_FOLLOWLOCATION => true,
    CURLOPT_PROXY          => $tor->getTorHostname() . ':' . $tor->getTorPort(),
    CURLOPT_PROXYTYPE      => CURLPROXY_SOCKS5,
    CURLOPT_SSL_VERIFYHOST => false,
    CURLOPT_SSL_VERIFYPEER => false,
);
$ch = \curl_init();
\curl_setopt_array($ch, $options);
$result = \curl_exec($ch);

The Versions

13/11 2014

dev-master

9999999-dev https://github.com/Graceas/GrcsTorBundle

TOR provider

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

proxy tor

13/11 2014

v0.1

0.1.0.0 https://github.com/Graceas/GrcsTorBundle

TOR provider

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

proxy tor