登录 注册

ProxyManager

去点 Star
网络与基础设施
4,936
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
PHP
语言
—
创建时间
最近更新

项目能做什么

用于生成和管理对象代理的 OOP 代理包装器与实用工具。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Proxy Manager

## A message to Russian 🇷🇺 people

If you currently live in Russia, please read [this message](./ToRussianPeople.md).

## Purpose

This library aims to provide abstraction for generating various kinds of 
  [proxy classes](http://ocramius.github.io/presentations/proxy-pattern-in-php/).

![ProxyManager](https://raw.githubusercontent.com/Ocramius/ProxyManager/917bf1698243a1079aaa27ed8ea08c2aef09f4cb/proxy-manager.png)

[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FOcramius%2FProxyManager%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/Ocramius/ProxyManager/master)
[![Type Coverage](https://shepherd.dev/github/Ocramius/ProxyManager/coverage.svg)](https://shepherd.dev/github/Ocramius/ProxyManager)

[![Total Downloads](https://poser.pugx.org/ocramius/proxy-manager/downloads.png)](https://packagist.org/packages/ocramius/proxy-manager)
[![Latest Stable Version](https://poser.pugx.org/ocramius/proxy-manager/v/stable.png)](https://packagist.org/packages/ocramius/proxy-manager)
[![Latest Unstable Version](https://poser.pugx.org/ocramius/proxy-manager/v/unstable.png)](https://packagist.org/packages/ocramius/proxy-manager)


## Documentation

You can learn about the proxy pattern and how to use the **ProxyManager** in the [docs](docs).

## ocramius/proxy-manager for enterprise

Available as part of the Tidelift Subscription.

The maintainer of ocramius/proxy-manager and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-ocramius-proxy-manager?utm_source=packagist-ocramius-proxy-manager&utm_medium=referral&utm_campaign=enterprise&utm_term=repo).

You can also contact the maintainer at ocramius@gmail.com for looking into issues related to this package
in your private projects.

## Installation

The suggested installation method is via [composer](https://getcomposer.org/):

```sh
php composer.phar require ocramius/proxy-manager
```

## Proxy example

Here's how you build a lazy loadable object with ProxyManager using a *Virtual Proxy*

```php
$factory = new \ProxyManager\Factory\LazyLoadingValueHolderFactory();

$proxy = $factory->createProxy(
    \MyApp\HeavyComplexObject::class,
    function (& $wrappedObject, $proxy, $method, $parameters, & $initializer) {
        $wrappedObject = new \MyApp\HeavyComplexObject(); // instantiation logic here
        $initializer   = null; // turning off further lazy initialization

        return true; // report success
    }
);

$proxy->doFoo();
```

See the [documentation](docs) for more supported proxy types and examples. 
阅读完整原文

项目深度分析 AI 生成

企业级技术支持与跨版本兼容保障(LTS)

产品构想针对受限于框架或环境无法随意升级的传统企业,提供专属 ProxyManager 长期维护与 PHP 新特性适配修补补丁。
核心功能旧版本安全修补、PHP 引擎底层变动引起的代理生成兼容修复、专属紧急 SLA 支持通道。
目标用户维护大型遗留 PHP 系统(金融、电商系统)的技术团队负责人。
难度/周期中等 · 1 - 3 个月搭建交付流程 · 成本:极低(主要为维护人力与测试矩阵 CI 算力)
收费模式按年订阅的商业支持合同(已有 Tidelift 合作作为先例,或个人商业咨询合同)
竞争风险PHP 社区开源免费文化较浓,小客户付费意愿低,高度依赖大型合规型企业。
依据 已验证事实

基于 AOP 代理的企业级合规与审计跟踪套件

产品构想利用 ProxyManager 的虚拟代理与切面封装能力,研发无侵入式的数据合规与调用审计中间件,自动对敏感服务进行日志埋点和参数脱敏。
核心功能自动化代理生成、敏感参数脱敏器、调用耗时追踪、无侵入式审计日志上报组件。
目标用户有数据合规(如 GDPR、金融审计)强需求的 PHP 团队系统架构师。
难度/周期中等 · 2 - 4 个月 · 成本:低(主要为研发与集成文档编写)
收费模式商业中间件 License 授权 + 定制化适配咨询费
竞争风险市面上存在基于 PHP 扩展(如 APM 扩展、Swoole)的替代方案,纯代码层 AOP 在高并发下可能有 CPU 开销。
依据 AI推测

大型 PHP 应用内存优化与架构重构咨询服务

产品构想围绕 Doctrine、复杂领域模型(DDD)的大型 PHP 项目,提供专门的内存占用剖析与 ProxyManager 延迟加载落地指导服务。
核心功能代码库瓶颈诊断、静态生成代理缓存策略设计、重对象延迟初始化改造方案。
目标用户面临高并发内存瓶颈的 Magento、Symfony、Shopware 等企业应用维护方。
难度/周期高 · 按项目交付(每单 2 - 4 周) · 成本:极低(专家工时成本为主)
收费模式按项目计费的技术咨询费、故障排查与架构调优服务费
竞争风险交付依赖专家个人声誉与高水平技术沉淀,难以大规模标准化复用。
依据 已验证事实
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

相似项目数据正在完善中,暂不展示(避免误导)

项目优势与风险

技术成熟度创建时间待补全,最近推送 ,发布过 70 个 Release
社区活跃Star 4,936 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。