PHPackages                             phprivoxy/application - 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. [Framework](/categories/framework)
4. /
5. phprivoxy/application

ActiveApplication[Framework](/categories/framework)

phprivoxy/application
=====================

Framework for proxy-server applications creation with PSR15 middleware as traffic handlers.

v0.9.4(1y ago)013MITPHPPHP &gt;=8.1

Since Jun 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/phprivoxy/application)[ Packagist](https://packagist.org/packages/phprivoxy/application)[ Docs](https://www.phprivoxy.ru)[ RSS](/packages/phprivoxy-application/feed)WikiDiscussions main Synced 1mo ago

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

phprivoxy/application
=====================

[](#phprivoxyapplication)

Framework for proxy-server applications creation with PSR15 middleware as traffic handlers.
-------------------------------------------------------------------------------------------

[](#framework-for-proxy-server-applications-creation-with-psr15-middleware-as-traffic-handlers)

This proxy-server application framework based on Workerman framework ().

With this framework proxy-servers creation come to appropriate PSR15 middlewares developing with necessary functionality.

### Requirements

[](#requirements)

- **PHP &gt;= 8.1**

### Installation

[](#installation)

#### Using composer (recommended)

[](#using-composer-recommended)

```
composer create phprivoxy/application
```

### Simple SSL MITM (Man In The Middle) proxy sample

[](#simple-ssl-mitm-man-in-the-middle-proxy-sample)

```
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Message\ResponseInterface;

class DummyMiddleware implements MiddlewareInterface
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        return $handler->handle($request);
    }
}

class HttpClientMiddleware implements MiddlewareInterface
{
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        $client = new GuzzleHttp\Client();
        try {
            $response = $client->send($request, ['allow_redirects' => false]);
        } catch (GuzzleHttp\Exception\ConnectException $e) {
            // Do something
        } catch (GuzzleHttp\Exception\BadResponseException $e) {
            return $e->getResponse();
        }

        return $response;
    }
}

$processes = 4; // Default 1.

$app = new PHPrivoxy\Application\Application($processes);
$app->add(new DummyMiddleware());
$app->add(new HttpClientMiddleware()); // HttpClient must be last in queue (it generate response).
$app->run(); // By default, it listen all connections on 8080 port.
```

This sample you also may find at "tests" directory.

Just run it:

```
php tests/test.php start
```

On first run this Application create a self-signed SSL root certificate in CA subdirectory. Add this self-signed CA certificate in your browser trusted certificates!

For each site Application will generate self-signed certificate in "certificates" subdirectory.

In this sample, we use simple PSR-15 compatible HttpClientMiddleware for site downloading. You also may add your own PSR-15 compatible Middlewares in queue according to your goals and needs.

### License

[](#license)

MIT License See [LICENSE](LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

5

Last Release

685d ago

### Community

Maintainers

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

---

Top Contributors

[![phprivoxy](https://avatars.githubusercontent.com/u/172364593?v=4)](https://github.com/phprivoxy "phprivoxy (6 commits)")

---

Tags

httpphphttpsmiddlewareframeworkproxypsr-15sslpsr15high-performancehttp-proxyproxy serverphp proxyssl proxyphprivoxyhttps-proxyprivoxyphp-proxy-serverproxyserverphp-proxyserverssl-proxy-serverhttp-proxy-serverhttps-proxy-serverhigh-performance-proxyhigh-performance-proxy-server

### Embed Badge

![Health badge](/badges/phprivoxy-application/health.svg)

```
[![Health](https://phpackages.com/badges/phprivoxy-application/health.svg)](https://phpackages.com/packages/phprivoxy-application)
```

###  Alternatives

[php-curl-class/php-curl-class

PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.

3.3k9.5M353](/packages/php-curl-class-php-curl-class)[chubbyphp/chubbyphp-framework

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

13544.4k4](/packages/chubbyphp-chubbyphp-framework)[igniphp/framework

Swoole, PSR-7, PSR-15 modular micro anti-framework.

2651.0k1](/packages/igniphp-framework)[yiisoft/yii-middleware

Yii Middleware

21151.3k1](/packages/yiisoft-yii-middleware)[yiisoft/rate-limiter

Yii Rate Limiter Middleware

2965.5k](/packages/yiisoft-rate-limiter)[nimbly/limber

A super minimal HTTP framework that doesn't get in your way.

208.9k](/packages/nimbly-limber)

PHPackages © 2026

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