承接 grcs/tor-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

grcs/tor-bundle

最新稳定版本:v0.1

Composer 安装命令:

composer require grcs/tor-bundle

包简介

TOR provider

关键字:

README 文档

README

License:

see LICENSE

Installation

  1. Add TorBundle to your vendor/ dir

Through composer:

"require": {
    ...
    "grcs/tor-bundle": "dev-master"
    ...
}
  1. Add TorBundle to your application kernel

    // app/AppKernel.php

    public function registerBundles() { return array( // ... new Grcs\TorBundle\GrcsTorBundle(), // ... ); }

  2. Install TOR https://www.torproject.org/docs/tor-doc-unix.html.en

  3. Configure TOR

    // add to /patch/to/etc/tor/torrc

    ControlPort 9051

  4. Run TOR

  5. Use

    $tor = $this->get('grcs.tor'); $tor->getNewIpAddress();

    Curl: $options = array( CURLOPT_URL => 'http://google.com', CURLOPT_HEADER => false, CURLOPT_TIMEOUT => 30, CURLOPT_CONNECTTIMEOUT => 30, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_PROXY => $tor->getTorHostname() . ':' . $tor->getTorPort(), CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, ); $ch = \curl_init(); \curl_setopt_array($ch, $options); $result = \curl_exec($ch);

统计信息

  • 总下载量: 897
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固