PHPackages                             minororange/proxy - 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. minororange/proxy

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

minororange/proxy
=================

70PHP

Since Feb 20Pushed 3y agoCompare

[ Source](https://github.com/minororange/function-proxy)[ Packagist](https://packagist.org/packages/minororange/proxy)[ RSS](/packages/minororange-proxy/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

### 说明

[](#说明)

类 Java JDK 的动态代理，有拦截器、自动注入、注入工厂等功能

- 拦截器： AOP，调用被代理类的方法时，可提供一个拦截器，自定义方法被调用前、调用后的操作内容
- 自动注入： 类属性类型如果被定义了，就自动把该属性注入
- 注入工厂： 使用 PHP 8 Attribute 功能，在类属性声明上方指定创建该属性的工厂，可自定义属性的具体类。类似 Spring 中的 FactoryBean

> 调用 demo 在 `test/Test.php` 中

### 运行测试脚本

[](#运行测试脚本)

```
composer dump-autoload

php test/Test.php

```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

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/c2853728c56a638e6237e3945de4bcc642da638dd9c80c350d0ced8210e6b629?d=identicon)[minororange](/maintainers/minororange)

---

Top Contributors

[![minororange](https://avatars.githubusercontent.com/u/25793112?v=4)](https://github.com/minororange "minororange (3 commits)")

### Embed Badge

![Health badge](/badges/minororange-proxy/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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