andersundsehr/rector-p
Composer 安装命令:
composer require andersundsehr/rector-p
包简介
rector run file by file (like git add -p)
README 文档
README
install
composer req andersundsehr/rector-p
Why should you need this?
if you have a large old project and want to use rector, it can be a pain to convert the whole project at once. So you can use rector-p to convert the project file by file. you will get asked for each file that has changes if you want to apply them.
Example
rector-p or vendor/bin/rector-p if you did not setup your PATH environment variable
if you only want to run it with a specific path you can do it like this:
rector-p src/Controller/
or
rector-p src/Controller/MyController.php src/Controller/MyOtherController.php
options you can use:
rector-p --help
Usage: partial [options] [--] [<source>...] Arguments: source Files or directories to be upgraded. Options: -s, --startOver Start over with the first file (be default rector-p keeps a record of files that have no changes in them) -p, --chunk=CHUNK chunk(part) definition eg 1/2 (first half) or 2/2 (second half) or 3/10 (third tenth) [default: "1/1"] -c, --config=CONFIG Path to config file [default: "/app/rector.php"] -h, --help Display help for the given command. When no command is given display help for the partial command -q, --quiet Do not output any message -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
with ♥️ from anders und sehr GmbH
If something did not work 😮
or you appreciate this Extension 🥰 let us know.
We are hiring https://www.andersundsehr.com/karriere/
andersundsehr/rector-p 适用场景与选型建议
andersundsehr/rector-p 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 39.46k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 andersundsehr/rector-p 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 andersundsehr/rector-p 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 39.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2024-08-07