qbbr/tor-proxy

Simple PHP cURL wrapper for Tor network.

1.0.2 2019-11-28 11:21 UTC

This package is auto-updated.

Last update: 2024-11-14 17:23:52 UTC


README

Simple PHP cURL wrapper for Tor network.

Latest Stable Version Total Downloads License

requirements

  • php-curl

install

tor

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

composer req qbbr/tor-proxy

tests

./vendor/bin/phpunit

tested on: Debian 9 amd64, Ubuntu 16.10 amd64, Win7 Ultimate x32

example

php example/1.php