PHPackages                             modstore/rotating-proxy-bundle - 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. modstore/rotating-proxy-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

modstore/rotating-proxy-bundle
==============================

Rotating proxy bundle for Symfony.

24.2k1PHP

Since Jan 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/modstore/RotatingProxyBundle)[ Packagist](https://packagist.org/packages/modstore/rotating-proxy-bundle)[ RSS](/packages/modstore-rotating-proxy-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

RotatingProxyBundle
===================

[](#rotatingproxybundle)

This bundle rotates through your pool of http proxies when sending subsequent requests.

Installation
------------

[](#installation)

composer require modstore/rotating-proxy-bundle:dev-master

### Add RotatingProxyBundle to your application kernel

[](#add-rotatingproxybundle-to-your-application-kernel)

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Modstore\RotatingProxyBundle\ModstoreRotatingProxyBundle(),
        // ...
    );
}
```

Add your proxy pool
-------------------

[](#add-your-proxy-pool)

Add your proxy ip addresses to the db table: modstore\_rotating\_proxy

- host: The proxy IP address
- port: The proxy port
- status: 1 to enable, 0 to disable

Usage example
-------------

[](#usage-example)

```
/** @var \Symfony\Component\DomCrawler\Crawler $crawler */
$crawler = $container->get('modstore_rotating_proxy.manager')->crawlPage(
    'https://github.com/modstore/RotatingProxyBundle',
    'github',
    ['Referer' => 'https://www.google.com']
);
```

An instance of the Symfony dom crawler will be returned: [https://symfony.com/doc/current/components/dom\_crawler.html](https://symfony.com/doc/current/components/dom_crawler.html)

Notes
-----

[](#notes)

In order to ensure requests aren't too similar and blocked as a bot, each request will set a random user agent string. It is also a good idea to provide a "Referer" string that would be a plausible organic referrer to the page you're requesting.

The second argument is a group name. Requests are rotated within a group. Generally for all requests to a particular domain, you would set the same group name.

Test command
------------

[](#test-command)

There's a test command to see how it works and test your requests. The text from the body of the page will be output.

```
php bin/console modstore_rotating_proxy:test
```

Optionally a url can be provided:

```
php bin/console modstore_rotating_proxy:test --url='https://github.com/modstore/RotatingProxyBundle'
```

When the url argument is omitted, a request will be sent to whatsmyip.org.

Log
---

[](#log)

A log of all requests is stored in the modstore\_rotating\_proxy\_log table.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cf970f6fb0f66aed0a1ef7ad2f5f964c8bae2b5ac239f35c6a0c8c4591bbc8d?d=identicon)[modstore](/maintainers/modstore)

---

Top Contributors

[![modstore](https://avatars.githubusercontent.com/u/7380420?v=4)](https://github.com/modstore "modstore (16 commits)")

### Embed Badge

![Health badge](/badges/modstore-rotating-proxy-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/modstore-rotating-proxy-bundle/health.svg)](https://phpackages.com/packages/modstore-rotating-proxy-bundle)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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