codito/rector-money

moneyphp/money 库的 Rector 升级规则

资助包维护!
Wirone

安装: 943

依赖: 0

建议者: 0

安全性: 0

星级: 1

关注者: 2

分支: 4

开放问题: 1

类型:rector-extension

1.0.0-RC5 2024-05-22 13:16 UTC

This package is auto-updated.

Last update: 2024-09-22 14:30:14 UTC


README

安装

composer require codito/rector-money --dev

使用集合

要将集合添加到您的配置中,请使用 Codito\Rector\Money\MoneySetList

use Rector\Config\RectorConfig;
use Codito\Rector\Money\MoneySetList;

return static function (RectorConfig $config): void {
    $config->import(MoneySetList::V4);

    // ... other configuration calls
};

贡献

如果您想为此包做出贡献,只需克隆此仓库

  • 做出所有必要的更改以满足您的需求
  • 运行 make qa 并确保一切通过
  • 创建拉取请求

提前感谢!🍻

开发环境

为了开发此包,您应该使用准备好的 Docker 栈。所有命令都应该通过 docker-compose 执行

docker-compose run php composer install

或使用 make 包装器

make run cmd="composer install"

使用 XDebug 调试

XDebug 已安装在 PHP 容器中,并且 Docker 栈已预配置为使用它,但默认情况下它处于 off 模式。如果您需要调试代码,只需在 .env 文件中将 XDEBUG_MODE=debug 设置为 debug 并在 IDE 中启用监听连接即可。