qbbr / tor-proxy
为Tor网络提供简单的PHP cURL包装器。
1.0.2
2019-11-28 11:21 UTC
Requires
- php: ^7.0
- ext-curl: *
Requires (Dev)
- phpunit/phpunit: ^6.5
This package is auto-updated.
Last update: 2024-09-14 16:55:42 UTC
README
为Tor网络提供简单的PHP cURL包装器。
需求
- php-curl
安装
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
测试
./vendor/bin/phpunit
测试平台:Debian 9 amd64,Ubuntu 16.10 amd64,Win7 Ultimate x32
示例
php example/1.php