wpelevator/vendor-isolator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固