PHPackages                             hotrush/scrapoxy-react-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hotrush/scrapoxy-react-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hotrush/scrapoxy-react-client
=============================

Async client for Scrapoxy and ReactPHP

1.1.0(8y ago)275[1 issues](https://github.com/hotrush/scrapoxy-react-client/issues)1MITPHPPHP &gt;=7.1

Since Mar 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/hotrush/scrapoxy-react-client)[ Packagist](https://packagist.org/packages/hotrush/scrapoxy-react-client)[ RSS](/packages/hotrush-scrapoxy-react-client/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (6)Versions (7)Used By (1)

[![Build Status](https://camo.githubusercontent.com/ebb42c12f627d523dc7dca5f613368f0a7a17df4102db2c60ccd341268fad3dc/68747470733a2f2f7472617669732d63692e6f72672f686f74727573682f73637261706f78792d72656163742d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hotrush/scrapoxy-react-client)[![Coverage Status](https://camo.githubusercontent.com/3292ed4fd298e705b587545ebb022037d22f00028ee87f9ab0af7bf7da5e9ee2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f686f74727573682f73637261706f78792d72656163742d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/hotrush/scrapoxy-react-client?branch=master)[![StyleCI](https://camo.githubusercontent.com/221f64a9e7ae37f9b0bda263d9689954d31a1993cb1a2fa620c77e5214df23d6/68747470733a2f2f7374796c6563692e696f2f7265706f732f38343933363633352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/84936635)[![Version](https://camo.githubusercontent.com/c081f23074edf08e0ee551b1447e79f557f72a37016e7a7257eeb9facb7a6b3e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f686f74727573682f73637261706f78792d72656163742d636c69656e742e737667)](https://github.com/hotrush/scrapoxy-react-client/releases/latest)[![Packagist Downloads](https://camo.githubusercontent.com/f5e6f8a328943e83eb71ddba45bf1eabad6c8195490e00a04fb151ce17d391f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686f74727573682f73637261706f78792d72656163742d636c69656e742e737667)](https://packagist.org/packages/hotrush/scrapoxy-react-client)[![SensioLabsInsight](https://camo.githubusercontent.com/d446bddcb10d664c86efafaec564ef2f67a500a18b2d11050bcc6f5a1eb5c273/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66623961646134322d316564372d343536652d616566302d6434373561396137323237612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/fb9ada42-1ed7-456e-aef0-d475a9a7227a)

Scrapoxy-React-Client
=====================

[](#scrapoxy-react-client)

Async client for [Scrapoxy](https://github.com/fabienvauchelles/scrapoxy) and [ReactPHP](https://github.com/reactphp/react).

Installation
============

[](#installation)

```
composer require hotrush/scrapoxy-react-client

```

Usage
=====

[](#usage)

```
use Hotrush\ScrapoxyClient\Client;
use React\EventLoop\Factory as LoopFactory;

$loop = LoopFactory::create();
$client = new Client('http://scrapoxy-host.com/api/', 'password', $loop);
$loop->run();

```

### Get scaling

[](#get-scaling)

```
$client->getScaling()
    ->then(
        function($scaling) {
            var_dump($scaling);
        },
        function($exception) {
            echo (string) $exception;
        }
    );

```

Will output your current scaling info:

```
[
    "min" => 0,
    "required" => 2,
    "max" => 5,
]

```

### Scaling up and down

[](#scaling-up-and-down)

```
$client->upScale()->then(...);
$client->downScale()->then(...);

```

Scaling up will update required instances number to maximum. Scaling down will update it to minimum.

### Custom scaling

[](#custom-scaling)

You can define your custom instances number:

```
$client->scale([
    'min' => 0,
    'max' => 10,
    'required' => 5,
]);

```

### Get and update config

[](#get-and-update-config)

```
$client->getConfig()->then(...);
$client->updateConfig([
    'any_key' => 'any_value',
])->then(...);

```

### Get instances

[](#get-instances)

```
$client->getInstances()->then(...);

```

### Stop instance by name

[](#stop-instance-by-name)

```
$client->stopInstance($name)->then(...);

```

Will throw `NotFoundException` if instance name not found.

Contribution
============

[](#contribution)

You are welcome to create any pull requests or write some tests!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~78 days

Recently: every ~98 days

Total

6

Last Release

3002d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

1.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cfcee390045ec2c0820506544a6778f93fed658e5e1124d38db4524aa6b3f4f?d=identicon)[hotrush](/maintainers/hotrush)

---

Top Contributors

[![hotrush](https://avatars.githubusercontent.com/u/1247004?v=4)](https://github.com/hotrush "hotrush (20 commits)")

---

Tags

asyncasynchronousphpreactphpscrapoxy

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hotrush-scrapoxy-react-client/health.svg)

```
[![Health](https://phpackages.com/badges/hotrush-scrapoxy-react-client/health.svg)](https://phpackages.com/packages/hotrush-scrapoxy-react-client)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k193.1M3.0k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k245.4M24.0k](/packages/friendsofphp-php-cs-fixer)[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

42.9k337.6k1](/packages/ccxt-ccxt)[react/react

ReactPHP: Event-driven, non-blocking I/O with PHP.

9.1k3.6M65](/packages/react-react)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k406.5k25](/packages/team-reflex-discord-php)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136400.8k14](/packages/rector-rector-src)

PHPackages © 2026

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