neunerlei/dbg-global
Composer 安装命令:
composer require neunerlei/dbg-global
包简介
Companion plugin to install the neunerlei/dbg module globally in any composer project
README 文档
README
This is a companion plugin to neunerlei/dbg which allows it to be installed globally,
without actually adding it to your composer.json file. This is an edge case scenario for your work environment in bigger teams.
Installation
Install the plugin globally with:
composer global require neunerlei/dbg-global
After you did that you can simply run composer install in the actual project you want to use dbg in.
This will not modify your composer.json or composer.lock but you will have all the helper functions
accessible in your code.
Happy debugging.
Shims and disabling them
The plugin will create a shim of the neunerlei/dbg methods in the vendor directory of your local project, so that your IDE can find them for its autocompletion.
If you don't want that to happen you can either disable the shim generation globally:
composer global config extra.neunerleiDevGlobal.noShim true
Alternatively you can disable the shim generation for specific directories as well:
composer global config extra.neunerleiDevGlobal.noShimDirs.0 /work/project
For multiple directories, raise the number after "noShimDirs" for each new directory.
Use: composer global config extra.neunerleiDevGlobal to see the current configuration
Hard copying files
If you don't want to rely on the globally installed plugin, for example in a docker context, you can create hard copies of the installed files in your "vendor" directory as well.
You can either enable them globally:
composer global config extra.neunerleiDevGlobal.hardCopy true
Alternatively you can create the hard copies with a per-directory configuration
composer global config extra.neunerleiDevGlobal.hardCopyDirs.0 /work/project
For multiple directories, raise the number after "hardCopyDirs" for each new directory.
Postcardware
You're free to use this package, but if it makes it to your production environment I highly appreciate you sending me a postcard from your hometown, mentioning which of our package(s) you are using.
You can find my address here.
Thank you :D
neunerlei/dbg-global 适用场景与选型建议
neunerlei/dbg-global 是一款 基于 Shell 开发的 Composer 扩展包,目前已累计 165 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 09 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 neunerlei/dbg-global 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 neunerlei/dbg-global 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 165
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-09-08