dev-master
9999999-dev https://github.com/Graceas/GrcsTorBundleTOR provider
MIT
The Requires
- php >=5.3.2
proxy tor
v0.1
0.1.0.0 https://github.com/Graceas/GrcsTorBundleTOR provider
MIT
The Requires
- php >=5.3.2
proxy tor
Wallogit.com
2017 © Pedro Peláez
TOR provider
License:, (*1)
see LICENSE
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);
TOR provider
MIT
proxy tor
TOR provider
MIT
proxy tor