PHPackages                             bluecadet/bc\_composer\_ci\_tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bluecadet/bc\_composer\_ci\_tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bluecadet/bc\_composer\_ci\_tools
=================================

Adds functionality for ci and composer tools built by Bluecadet.

1.0.4(2y ago)07.2k↓62.7%GPL-2.0+PHPPHP ^7.4||^8.0

Since Oct 28Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/bluecadet/bc_composer_ci_tools)[ Packagist](https://packagist.org/packages/bluecadet/bc_composer_ci_tools)[ RSS](/packages/bluecadet-bc-composer-ci-tools/feed)WikiDiscussions 1.x Synced 3d ago

READMEChangelogDependencies (1)Versions (13)Used By (0)

Bluecadet PHPCS CI Tools
========================

[](#bluecadet-phpcs-ci-tools)

A custom [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) report formatter plugin designed for GitHub Actions, rendering code-style violations as rich Markdown tables.

Supported PHP Versions
----------------------

[](#supported-php-versions)

- PHP 7.4+
- PHP 8.0+
- PHP 8.1+
- PHP 8.2+
- PHP 8.3+

Requirements
------------

[](#requirements)

- **PHP\_CodeSniffer 3.x** (`squizlabs/php_codesniffer ^3.0`)
- Composer for installation

Installation
------------

[](#installation)

Install via Composer as a dev dependency:

```
composer require --dev bluecadet/bc_composer_ci_tools
```

Usage
-----

[](#usage)

### Report Classes

[](#report-classes)

This package provides three custom PHPCS report classes under `Bluecadet\PHPCS\Report\`:

#### 1. `MarkdownGithub` (Recommended for GitHub Actions)

[](#1-markdowngithub-recommended-for-github-actions)

Formats output specifically for GitHub Actions step summaries using KaTeX math syntax for inline colors. Results render beautifully in the PR checks tab.

```
./vendor/bin/phpcs \
  --report=Bluecadet\\PHPCS\\Report\\MarkdownGithub \
  --standard=Drupal \
  --extensions=php,module,inc,install,test,profile,theme,info,txt \
  ./web/modules/custom >> $GITHUB_STEP_SUMMARY
```

**Output includes:**

- Per-file violation tables with color-coded severity levels
- Summary table of error/warning counts across all files
- Total violation count
- Organized details section for easy scanning

#### 2. `Markdown` (Generic Markdown)

[](#2-markdown-generic-markdown)

Uses inline HTML color spans for generic Markdown renderers that support HTML.

```
./vendor/bin/phpcs \
  --report=Bluecadet\\PHPCS\\Report\\Markdown \
  --standard=Drupal \
  ./web/modules/custom
```

#### 3. `MarkdownBase` (Base Class)

[](#3-markdownbase-base-class)

Base implementation for custom report extensions. Extend this class to create custom report formats.

```
use Bluecadet\PHPCS\Report\MarkdownBase;

class CustomReport extends MarkdownBase {
  // Your custom implementation
}
```

### Local Usage (Non-GitHub Actions)

[](#local-usage-non-github-actions)

For local code style checking:

```
# Drupal standard check
./vendor/bin/phpcs --standard=Drupal ./web/modules/custom

# DrupalPractice standard check
./vendor/bin/phpcs --standard=DrupalPractice ./web/modules/custom

# With Markdown output
./vendor/bin/phpcs \
  --report=Bluecadet\\PHPCS\\Report\\Markdown \
  --standard=Drupal \
  ./web/modules/custom
```

GitHub Actions Integration
--------------------------

[](#github-actions-integration)

See [`bluecadet/web-gh-actions`](https://github.com/bluecadet/web-gh-actions) for the `ensure-composer-package` action, which manages this package's installation in CI workflows.

Example workflow step:

```
- name: Run PHPCS with Markdown report
  run: |
    ./vendor/bin/phpcs -s \
      --report=Bluecadet\\PHPCS\\Report\\MarkdownGithub \
      --standard=Drupal \
      --extensions=php,module,inc,install,test,profile,theme,info,txt \
      ./web/modules/custom >> $GITHUB_STEP_SUMMARY
```

Authors
-------

[](#authors)

- Pete Inge

License
-------

[](#license)

GPL-2.0+

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance56

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~90 days

Recently: every ~43 days

Total

11

Last Release

82d ago

PHP version history (2 changes)1.0.0PHP ^7.4||^8.0

1.1.0-alpha1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e354e3aa8f75899d7dc41cc3017e438cbf5c0025f55484d8138fa1c489b010a4?d=identicon)[pingevt](/maintainers/pingevt)

---

Top Contributors

[![pingevt](https://avatars.githubusercontent.com/u/3128823?v=4)](https://github.com/pingevt "pingevt (17 commits)")

### Embed Badge

![Health badge](/badges/bluecadet-bc-composer-ci-tools/health.svg)

```
[![Health](https://phpackages.com/badges/bluecadet-bc-composer-ci-tools/health.svg)](https://phpackages.com/packages/bluecadet-bc-composer-ci-tools)
```

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

160443.1k59](/packages/humanmade-coding-standards)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M44](/packages/dereuromark-cakephp-ide-helper)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

343.2M444](/packages/mediawiki-mediawiki-codesniffer)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)[nette/coding-standard

41937.1k19](/packages/nette-coding-standard)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
