定制 bannister/vexillum 二次开发

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

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

bannister/vexillum

最新稳定版本:2.4.0

Composer 安装命令:

composer require bannister/vexillum

包简介

A 3Fiftynine PHPCS extension, allowing for the standardized application of 3Fiftynine coding standards throughout multiple projects.

README 文档

README

About

Version

release

Support Status

Vexillum is actively used and maintained.

Description

Vexillum is a PHPCS extension for 3Fiftynine coding standards in PHP-based projects.

With this package, it is possible to apply the extended coding standards to the entire product suite in a standardized manner.

Technical Requirements

Vexillum requires:

  • PHP 8.1+

Installation

Step 1: Composer

Start off by opening your command-line and run the following command inside your project:

composer require bannister/vexillum

Step 2: Scripting

Once the package has been installed, add the following lines to the scripts section in your project's composer.json.

"scripts": {
    "vexillum": "./vendor/bin/phpcs --standard=vendor/bannister/vexillum/Standards/ThreeFiftynine src/ -p",
    "vexillum-fix" : "php ./vendor/bin/phpcbf"
}

Vexillum is now ready for use in your project!

Usage

Fortunately, using Vexillum is simple. In order to check the coding standards in your project, simply execute the following:

composer vexillum

Some coding standards violations can be fixed automatically via:

composer vexillum-fix

Customization

Due to the installation instruction above, Vexillum will only check your src directory by default. It is possible to alter the target directory by changing the final part of the vexillum script in your composer.json.

For example:

"scripts": {
    "vexillum": "./vendor/bin/phpcs --standard=vendor/bannister/vexillum/Standards/ThreeFiftynine path/to/your/directory",
    "vexillum-fix" : "php ./vendor/bin/phpcbf"
}

Authors

NameFunctionContact
Jacco EngelBack-end DeveloperJacco@3Fiftynine.nl
Tom PetersBack-end DeveloperTom@3Fiftynine.nl

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-31