codito / rector-money
moneyphp/money 库的 Rector 升级规则
1.0.0-RC5
2024-05-22 13:16 UTC
Requires
- php: ^7.4|^8.0
- rector/rector: ^1.0
Requires (Dev)
- moneyphp/money: ^3.2|^4.0.1
- phparkitect/phparkitect: ^0.2.32
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.7.2
- phpstan/phpstan-strict-rules: ^1.1
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- symfony/dependency-injection: ^5.4|^6.0
- symplify/easy-coding-standard: ^11.0
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 中启用监听连接即可。