承接 wpelevator/vendor-isolator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wpelevator/vendor-isolator

最新稳定版本:0.1.0

Composer 安装命令:

composer require wpelevator/vendor-isolator

包简介

Composer plugin to isolate project dependencies by prefixing their namespace

README 文档

README

Composer plugin to isolate project dependencies by prefixing their namespace.

Requirements

How it Works

  • It registers itself as a Composer plugin when you add it to your project through the extra.class directive in the composer.json file pointing to WPElevator\Vendor_Isolator\Plugin in php/class-plugin.php.

  • It hooks into pre-autoload-dump and post-autoload-dump Composer events and uses nikic/php-parser to rewrite the namespaces and classname references for all non-development dependencies. It ignores all global function and classes.

To Do

  • Describe how this is different from php-scoper and other projects.

Features and Limitations

  • It only rewrites the non-development dependencies in the vendor directory, therefore your application code must reference the isolated dependencies by their prefixed namespace.

  • It doesn't replace function definitions and calls in the global namespace. Any definitions and calls to global functions will remain in the global namespace after the transformation.

Credits

A fork of and/composer-isolation.

统计信息

  • 总下载量: 165
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-31