bannister/vexillum

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

2.4.0 2023-09-13 12:22 UTC

This package is auto-updated.

Last update: 2024-11-13 15:01:27 UTC


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