Via Composer
$ composer require bafoed/php-tor-control
You can see a simple example of usage in example.php.
Available methods are:
<?php
$torControl->changeIP(); // creates new tor identity
$torControl->getVersion(); // returns tord version
$torControl->getAddress(); // returns IP address of server
$torControl->getUser(); // returns username of tord user
$torControl->getAccountingStats(); // return some network stats if accounting is enabled
$torControl->_getInfo('circuit-status'); // call other tord functions (look for GETINFO docs)
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email bafoed@bafoed.ru instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.