Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qbbr/torproxy
Simple PHP cURL wrapper for Tor network
https://github.com/qbbr/torproxy
curl fsockopen php tor
Last synced: 17 days ago
JSON representation
Simple PHP cURL wrapper for Tor network
- Host: GitHub
- URL: https://github.com/qbbr/torproxy
- Owner: qbbr
- License: mit
- Created: 2019-11-28T10:25:32.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T15:20:54.000Z (about 1 year ago)
- Last Synced: 2024-02-14T17:44:16.724Z (10 months ago)
- Topics: curl, fsockopen, php, tor
- Language: PHP
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TorProxy
Simple PHP cURL wrapper for Tor network.
[![Latest Stable Version](https://poser.pugx.org/qbbr/tor-proxy/v/stable)](https://packagist.org/packages/qbbr/tor-proxy)
[![Total Downloads](https://poser.pugx.org/qbbr/tor-proxy/downloads)](https://packagist.org/packages/qbbr/tor-proxy)
[![License](https://poser.pugx.org/qbbr/tor-proxy/license)](https://packagist.org/packages/qbbr/tor-proxy)## requirements
* php-curl
## install
### tor
```bash
apt install tor
# [optional] if u using `$torProxy->changeTorCircuits()` u *must* access to tor control
sed -e 's/#ControlPort 9051/ControlPort 9051/' -i /etc/tor/torrc
sed -e 's/#CookieAuthentication 1/CookieAuthentication 0/' -i /etc/tor/torrc
systemctl restart tor
```### lib
```bash
composer req qbbr/tor-proxy
```## tests
```bash
./vendor/bin/phpunit
```tested on: Debian 9 amd64, Ubuntu 16.10 amd64, Win7 Ultimate x32
## example
```bash
php example/1.php
```