PHP Classes

PHP Tor Proxy Curl: Send HTTP request using a Tor proxy server

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 136 All time: 9,271 This week: 673Up
Version License PHP version Categories
torproxy 1.0.0The PHP License5Networking, HTTP, PHP 5
Description 

Author

This class can send HTTP request using a Tor proxy server.

It can send HTTP POST and GET requests to given URL using a proxy server of the Tor network.

The class can obtain the IP address and port number of the Tor proxy server by connecting to local Tor node server.

Picture of Kemal GENIS
  Performance   Level  
Name: Kemal GENIS <contact>
Classes: 7 packages by
Country: Turkey Turkey
Age: 41
All time rank: 233540 in Turkey Turkey
Week rank: 215 Up5 in Turkey Turkey Up

Example

<?php
include_once "torProxy.class.php";

$url = "ifconfig.me/ip";
echo
$url."\n";
$tor = new torProxy();
$data = $tor->get($url);
echo
$data."\n";

sleep(5);
echo
"Reset Tor Node...\n";
$tor->resetTor();
echo
$url."\n";
$data = $tor->get($url);
echo
$data."\n";


  Files folder image Files (3)  
File Role Description
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file test.php Example Example script
Plain text file torProxy.class.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:136
This week:0
All time:9,271
This week:673Up