a9f/typo3-fractor
最新稳定版本:v0.5.8
Composer 安装命令:
composer require --dev a9f/typo3-fractor
包简介
TYPO3 extension for the File Read-Analyse-Change Tool. Allows modifying XML files
README 文档
README
Ease your TYPO3 upgrades by also automatically changing TypoScript, YAML and Fluid. An enhancement for TYPO3-Rector.
Warning
❗ Never run this tool on production! Always run it on development environment where code is under version control (e.g. git). Review and test changes before releasing to production. Code migrations could potentially break your website!
Installation
Install TYPO3 Fractor via composer by running the following command in your terminal:
composer require a9f/typo3-fractor --dev
Configuration
Create a PHP configuration file fractor.php where you define the paths to your files and the rules to apply.
<?php use a9f\Fractor\Configuration\FractorConfiguration; use a9f\Typo3Fractor\Set\Typo3LevelSetList; return FractorConfiguration::configure() ->withPaths([__DIR__ . '/packages/']) ->withSets([ Typo3LevelSetList::UP_TO_TYPO3_14 ]);
Have a look at all available rules: Overview of all rules
Usage
To see the code migrations that Fractor will do, run:
vendor/bin/fractor process --dry-run
and when you want to execute the migrations run:
vendor/bin/fractor process
Fractor will apply the rules specified in the configuration file to the targeted files.
Review the changes to ensure they meet your expectations.
Development
Development happens in the Fractor monorepo on GitHub
统计信息
- 总下载量: 126.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 1
- 依赖项目数: 23
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-04-21