PHPackages                             jordikroon/docbook-cs - 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. jordikroon/docbook-cs

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

jordikroon/docbook-cs
=====================

A static-analysis linter for DocBook XML files

1.1.2(1mo ago)048Apache-2.0PHP ^8.5

Since Apr 23Pushed 1w agoCompare

[ Source](https://github.com/jordikroon/docbook-cs)[ Packagist](https://packagist.org/packages/jordikroon/docbook-cs)[ RSS](/packages/jordikroon-docbook-cs/feed)WikiDiscussions main Synced 1w ago

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

DocbookCS
=========

[](#docbookcs)

A static-analysis linter for DocBook XML files. It scans XML documentation sources and reports style and convention violations.

**Full documentation:** [jordikroon.github.io/docbook-cs](https://jordikroon.github.io/docbook-cs)

---

Contributing
------------

[](#contributing)

### Requirements

[](#requirements)

- PHP 8.5+
- Extensions: `dom`, `libxml`, `simplexml`

### Setup

[](#setup)

```
composer install
```

### Running checks

[](#running-checks)

```
# Tests
vendor/bin/phpunit

# Static analysis
vendor/bin/phpstan

# Code style
vendor/bin/phpcs
```

### Writing a sniff

[](#writing-a-sniff)

Implement `DocbookCS\Sniff\SniffInterface` (or extend `AbstractSniff`):

```
namespace Acme\DocbookSniffs;

use DocbookCS\Sniff\AbstractSniff;

final class MySniff extends AbstractSniff
{
    public function getCode(): string
    {
        return 'Acme.MySniff';
    }

    public function process(\DOMDocument $document, string $content, string $filePath): array
    {
        $violations = [];
        // ... inspect $document, add violations via $this->createViolation(...)
        return $violations;
    }
}
```

Register it in your config:

```

```

License
-------

[](#license)

Apache 2.0

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance95

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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 ~1 days

Total

6

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/728df9abefc9cbf14f54eee77e87cc690e02840e268cefbc7228bd94090762d5?d=identicon)[jordi12100](/maintainers/jordi12100)

---

Top Contributors

[![jordikroon](https://avatars.githubusercontent.com/u/2232811?v=4)](https://github.com/jordikroon "jordikroon (22 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jordikroon-docbook-cs/health.svg)

```
[![Health](https://phpackages.com/badges/jordikroon-docbook-cs/health.svg)](https://phpackages.com/packages/jordikroon-docbook-cs)
```

###  Alternatives

[jeroendesloovere/distance

Get distance between two locations using PHP.

3664.4k](/packages/jeroendesloovere-distance)[liyunfang/yii2-contextmenu

yii2 Extended for bootstrap-contextmenu plugin https://github.com/sydcanem/bootstrap-contextmenu

2434.9k1](/packages/liyunfang-yii2-contextmenu)

PHPackages © 2026

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