PHPackages                             wp-php-toolkit/corsproxy - 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. wp-php-toolkit/corsproxy

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

wp-php-toolkit/corsproxy
========================

CORSProxy component for WordPress.

v0.5.1(8mo ago)00GPL-2.0-or-laterPHPPHP &gt;=7.2

Since May 20Pushed 1mo agoCompare

[ Source](https://github.com/wp-php-toolkit/corsproxy)[ Packagist](https://packagist.org/packages/wp-php-toolkit/corsproxy)[ RSS](/packages/wp-php-toolkit-corsproxy/feed)WikiDiscussions trunk Synced 1mo ago

READMEChangelogDependencies (2)Versions (34)Used By (0)

PHP CORS Proxy
--------------

[](#php-cors-proxy)

A PHP CORS proxy need to integrate git clone via fetch().

### Configuration

[](#configuration)

In order to avoid running a CORS proxy that is easy to abuse by default, the proxy requires administrators to explicitly declare what to do about rate-limiting, by doing one of the following:

- Provide a rate-limiting function `playground_cors_proxy_maybe_rate_limit()`.
- Define a truthy `PLAYGROUND_CORS_PROXY_DISABLE_RATE_LIMIT` to explicitly disable rate-limiting.

These can be provided in an optional `cors-proxy-config.php` file in the same directory as `cors-proxy.php` or in a PHP file that is loaded before all PHP execution via the [`auto_prepend_file`](https://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file) php.ini option.

### Usage

[](#usage)

Request  to get the response from  plus the CORS headers.

### Development and testing

[](#development-and-testing)

- Run `dev.sh` to start a local server, then go to  and confirm it worked.
- Run `test.sh` to run PHPUnit tests, confirm they all pass.
- Run `test-watch.sh` to run PHPUnit tests in watch mode.

### Design decisions

[](#design-decisions)

- Stream data both ways, don't buffer.
- Don't pass auth headers in either direction.
    - Opt-in for request headers possible using `X-Cors-Proxy-Allowed-Request-Headers`.
- Refuse to request private IPs.
- Refuse to process non-GET non-POST non-OPTIONS requests.
- Refuse to process POST request body larger than, say, 100KB.
- Refuse to process responses larger than, say, 100MB.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance77

Regular maintenance activity

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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 ~4 days

Total

33

Last Release

249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82f8b6f87f741a78784d7453f52734516053272d36325c5cf23b24df0baffe8d?d=identicon)[AZielinski](/maintainers/AZielinski)

---

Top Contributors

[![adamziel](https://avatars.githubusercontent.com/u/205419?v=4)](https://github.com/adamziel "adamziel (11 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wp-php-toolkit-corsproxy/health.svg)

```
[![Health](https://phpackages.com/badges/wp-php-toolkit-corsproxy/health.svg)](https://phpackages.com/packages/wp-php-toolkit-corsproxy)
```

###  Alternatives

[hazaveh/verify-domain

Verify Domain Ownership with PHP

238.6k1](/packages/hazaveh-verify-domain)

PHPackages © 2026

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