PHPackages                             dynoser/proxier - 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. dynoser/proxier

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

dynoser/proxier
===============

Performs an HTTP request by copying the original request headers and replacing some of them

1.0.1(2y ago)010Apache-2.0PHPPHP &gt;=7.4

Since Dec 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dynoser/proxier)[ Packagist](https://packagist.org/packages/dynoser/proxier)[ RSS](/packages/dynoser-proxier/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

dynoser\\webtools\\Proxier
--------------------------

[](#dynoserwebtoolsproxier)

### Introduction

[](#introduction)

The `Proxier` class is designed to work as a proxy for web requests.

Optional features:

- replace any headers from original request to specified
- cache responses with code 200 for the specified time (default 3600 seconds)

Requirements

- PHP 5.6 or higher.
- cURL extension enabled.

### Installation

[](#installation)

All code is in one src/Proxier.php file, you may include only this file.

or, you may use `composer require dynoser/proxier`

or, include the package in your `composer.json` file and run `composer update`.

### Features

[](#features)

- **URL and Header Manipulation**: Allows encoding and decoding of URLs and request headers using Base64url.
- **Caching Mechanism**: (optional) Caches successful responses (code 200) for a specified duration.

### Usage

[](#usage)

To use this class, you need to create a file accessible via the web with code approximately like this:

```
// (optional) specify directory for cache. if the cacheBaseDir is not specified, it will work without caching
$cacheBaseDir = "[YOUR ROOT PATH]/cache/proxier";

// load Proxier class without autoload, or use 'vendor/autoload.php' instead
$chkFile = "[YOUR ROOT PATH]/vendor/dynoser/proxier/src/Proxier.php";
require  $chkFile;

// required: create object and setup parameters: url, rep, cachesec.
// Only the URL is required, other parameters are optional.
$p = new \dynoser\webtools\Proxier($_REQUEST['url'] ?? '', $_REQUEST['rep'] ?? '', $_REQUEST['cachesec'] ?? '');

// (optional)
if (!empty($cacheBaseDir)) {
    $p->setCacheBaseDir($cacheBaseDir, true);
}

// run required
$p->run();

// remove old-cache-data periodicaly
//   (or you may call this fuction by cron instead)
$p->removeCachePeriodically();
```

#### Remote call:

[](#remote-call)

In order to use a proxy request, you can insert something like the following code when creating a web page:

```
        $urlB64 = Proxier::makeUrlPar($url);

        echo '';
```

### Contribution

[](#contribution)

Feel free to contribute or suggest improvements via GitHub.

### License

[](#license)

This class is open-sourced software licensed under the MIT license.

### Support

[](#support)

For issues and features requests, please file an issue on the GitHub repository.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2576177031670dbafd68b9a03031ca81f0b9e45f0d6244c2cfc2e12cf2d312b9?d=identicon)[dynoser](/maintainers/dynoser)

---

Tags

httpproxywebproxy

### Embed Badge

![Health badge](/badges/dynoser-proxier/health.svg)

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

###  Alternatives

[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

48619.2M541](/packages/nette-http)[clue/http-proxy-react

Async HTTP proxy connector, tunnel any TCP/IP-based protocol through an HTTP CONNECT proxy server, built on top of ReactPHP

472.3M33](/packages/clue-http-proxy-react)[zounar/php-proxy

Forward your HTTP/HTTPS requests to another server.

1814.0k](/packages/zounar-php-proxy)[flowpack/varnish

Varnish integration for Neos

2052.9k](/packages/flowpack-varnish)[remic/guzzlecache

Laravel 5 package for caching Guzzle's GET requests.

189.3k](/packages/remic-guzzlecache)[geekality/php-cross-domain-proxy

Simple self-contained PHP proxy for cross-origin ajax requests.

241.4k](/packages/geekality-php-cross-domain-proxy)

PHPackages © 2026

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