定制 spryker-sdk/architector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spryker-sdk/architector

Composer 安装命令:

composer require spryker-sdk/architector

包简介

Spryker Architector - tool for Spryker Architecture introspection

README 文档

README

CI Latest Stable Version Minimum PHP Version PHPStan

Installation

composer require --dev spryker-sdk/architector

This is a development only "require-dev" library. Please make sure you include it as such.

What is the Architector

The Architector is a tool that supports you in automated refactorings regarding Spryker architecture and reports issues in your code.

See current rules for details.

Configuration

architector.php
<?php

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
use Architector\Set\ValueObject\ArchitectorSetList;

return static function (RectorConfig $rectorConfig) {
    // Import RuleSets provided by Rector or by the Architector
    $rectorConfig->import(SetList::DEAD_CODE);
    $rectorConfig->import(SetList::EARLY_RETURN);
    $rectorConfig->import(SetList::PHP_74);
    $rectorConfig->import(SetList::NAMING);
    $rectorConfig->import(ArchitectorSetList::RENAME);
    $rectorConfig->import(ArchitectorSetList::CODECEPTION);

    // Defining rules or paths to skip
    $rectorConfig->skip([
        RuleClassNameToSkip::class,
        __DIR__ . '/src/Path/To/Exclude/Something.php',
    ]);
};

How to use the Architector

You can run the Architector in two ways

vendor/bin/rector process path/to/refactor --config architector.php

or

vendor/bin/rector process path/to/refactor --config architector.php --dry-run

The latter one only shows a diff without actually changing your code.

For more details see documentation of vendor/bin/rector

How to generate documentation

Run composer docs to generate documentation in docs/rules_overview.md.

统计信息

  • 总下载量: 30.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 10
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2021-08-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固