PHPackages                             nikserg/yii2-curl-tor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. nikserg/yii2-curl-tor

ActiveLibrary[HTTP &amp; Networking](/categories/http)

nikserg/yii2-curl-tor
=====================

Support TOR proxy in Curl

0.0.5(7y ago)0421PHP

Since Jan 14Pushed 7y agoCompare

[ Source](https://github.com/nikserg/yii2-curl-tor)[ Packagist](https://packagist.org/packages/nikserg/yii2-curl-tor)[ RSS](/packages/nikserg-yii2-curl-tor/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

yii2-curl-tor
=============

[](#yii2-curl-tor)

Support of TOR proxy in Curl for Yii2.

Install:
--------

[](#install)

`composer require nikserg/yii2-curl-tor`

Usage:
------

[](#usage)

`$curl = new CurlTor('localhost', 9050, 9051, 'OInf80v0cc83lascm9Jf');`

Where

`'localhost'` - host of TOR instance

`9050` - client port

`9051` - control port

`'OInf80v0cc83lascm9Jf'` - auth token

By default, TOR is disabled. `CurlTor` is working as regular `Curl` model. To enable TOR, use `$curlTor->enableTor()`.

About control port and auth token
---------------------------------

[](#about-control-port-and-auth-token)

This stuff is needed to change TOR identity (your IP-address) on fly. To do this, use `$curlTor->newIdentity()`. If you're not going to use such functionality, you can ignore this. How to setup:

1. On `/etc/torrc` uncomment:

`#ControlPort 9051`

`#HashedControlPassword 16:872860B76453A77D60CA2BB8C1A7042072093276A3D701AD684053EC4C`

2. Generate password with command `tor --hash-password mypass`, where `mypass` is desired password
3. Insert result into line `#HashedControlPassword`
4. Restart TOR using `sudo service tor restart`

You're good to go. Now you can use

`$curl->newIdentity();`

And you'll get new IP in a few seconds.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

5

Last Release

2680d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b03ce989f89fc2cc42dc6847d51f517a6e40f3dddde319060169a933e4bc0c77?d=identicon)[nikserg](/maintainers/nikserg)

---

Top Contributors

[![uc-itcom](https://avatars.githubusercontent.com/u/21470696?v=4)](https://github.com/uc-itcom "uc-itcom (8 commits)")

---

Tags

curlyii2extensiontor

### Embed Badge

![Health badge](/badges/nikserg-yii2-curl-tor/health.svg)

```
[![Health](https://phpackages.com/badges/nikserg-yii2-curl-tor/health.svg)](https://phpackages.com/packages/nikserg-yii2-curl-tor)
```

###  Alternatives

[linslin/yii2-curl

Easy and nice cURL extension with RESTful support for Yii2

1741.5M20](/packages/linslin-yii2-curl)[bryglen/yii2-apns-gcm

Yii 2 Apns and Gcm together

54281.0k2](/packages/bryglen-yii2-apns-gcm)[dapphp/torutils

Classes for interacting with Tor over the control protocol, querying directory authorities and servers, DNS exit lists, a curl wrapper that makes it easy to use Tor's SOCKS proxy, and more.

7285.6k1](/packages/dapphp-torutils)[joni-jones/yii2-wschat

Online chat based on web sockets and ratchet php

981.3k](/packages/joni-jones-yii2-wschat)[yiiplus/yii2-websocket

使用yii2封装 websocket 扩展

212.7k](/packages/yiiplus-yii2-websocket)[afinogen89/get-mail

Get Mail from POP3

117.5k](/packages/afinogen89-get-mail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
